Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonQDixon committed Jul 15, 2021
1 parent 1008fdf commit 7bcd790
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions example-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,33 @@ const commands: iCliCommand[] = [
cliOutputter.pushMessage("Boolean result", params.booleanValue);
}
},
{
name: "Choose Something",
displayText: "Choose from a list of options",
tokens: ["ch-s"],
async getRequiredParams() {
return [{
name: "choice",
displayText: "Make a choice",
choices: [{
name: "one",
displayText: "First choice"
}, {
name: "two",
displayText: "Second choice"
}, {
name: "three",
displayText: "Third choice"
}, {
name: "four",
displayText: "Fourth choice"
}],
}];
},
execute: async (params: {choice: string;}, cliOutputter: iCliOutputter) => {
cliOutputter.pushMessage("Choice result:", params.choice);
}
},
{
name: "Add Numbers",
displayText: "Add some numbers together",
Expand Down

0 comments on commit 7bcd790

Please sign in to comment.