Created
June 24, 2020 18:11
-
-
Save kenanchristian/d0fd5dae1e086f7b1996f415ff72a7b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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