Skip to content

Instantly share code, notes, and snippets.

@kenanchristian
Created June 24, 2020 18:11
Show Gist options
  • Save kenanchristian/d0fd5dae1e086f7b1996f415ff72a7b5 to your computer and use it in GitHub Desktop.
Save kenanchristian/d0fd5dae1e086f7b1996f415ff72a7b5 to your computer and use it in GitHub Desktop.
static flags = {
help: flags.help({char: 'h'}),
crust: flags.string({char: 'c', description: 'Type of Crust (Thin/Thick)'}),
toppings: flags.string({char: 't', description: 'Toppings to add', options: ['pepperoni', 'mushroom', 'bacon', 'pineapple'], multiple: true}),
extraSauce: flags.boolean({char: 'x', description: 'Do you want extra sauce?'}),
}
static args = [
{
name: 'count',
required: false,
description: 'How many pizza you want to create',
parse: (input: string) => parseInt(input, 10) || 1,
default: 1,
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment