Skip to content

Commit 54eabf0

Browse files
extend demo
1 parent 50b14bf commit 54eabf0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/programs/bugreport.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default {
1616
feature: "Opens the bug reporter with the feature request template.",
1717
other: "Opens the bug reporter with the template chooser (default).",
1818
},
19+
completion: async () => ["bug", "feature", "other"], // TODO: handle partial arg
1920
main: async (data) => {
2021
// extract from data to make code less verbose
2122
const { term, args } = data;

src/programs/help.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default {
3434
},
3535
completion: async (data) => {
3636
// TODO smarter completion to handle number of args and flags
37+
// TODO: handle partial arg
3738
return data.term.get_program_registry().listProgramNames();
3839
},
3940
main: async (data) => {

0 commit comments

Comments
 (0)