3 ms·
Totally agree! The closer autocompletion lives to the source code, the better. We've started off writing completions by hand, but to scale we will need more ro
by mschrage 5y ago
Totally agree! The closer autocompletion lives to the source code, the better.
We've started off writing completions by hand, but to scale we will need more robust integrations. For instance, aws has 100+ subcommands and thousands of options.
Long term, we plan on writing integrations with popular CLI libraries, so that the completion spec can be generated automatically. We've already started with oclif[0] and have done some preliminary work with cobra.
[0 https://github.com/withfig/oclif-plugin/blob/main/src/commands/fig-completion.ts https://github.com/withfig/oclif-plugin/blob/main/src/comman...]