|
@@ -1,23 +0,0 @@
|
|
|
-import { Command, Flags } from '@oclif/core'
|
|
|
-
|
|
|
-export default class Hello extends Command {
|
|
|
- static description = 'Say hello'
|
|
|
-
|
|
|
- static examples = [
|
|
|
- `$ oex hello friend --from oclif
|
|
|
-hello friend from oclif! (./src/commands/hello/index.ts)
|
|
|
-`,
|
|
|
- ]
|
|
|
-
|
|
|
- static flags = {
|
|
|
- from: Flags.string({ char: 'f', description: 'Whom is saying hello', required: true }),
|
|
|
- }
|
|
|
-
|
|
|
- static args = [{ name: 'person', description: 'Person to say hello to', required: true }]
|
|
|
-
|
|
|
- async run(): Promise<void> {
|
|
|
- const { args, flags } = await this.parse(Hello)
|
|
|
-
|
|
|
- this.log(`hello ${args.person} from ${flags.from}! (./src/commands/hello/index.ts)`)
|
|
|
- }
|
|
|
-}
|