3 ms·
Glad you like the UI! Cobra and other CLI libraries, like oclif, can help you generate the skeleton of the CLI, stuff like subcommands, options, etc. (I'm in t
by mschrage 5y ago
Glad you like the UI!
Cobra and other CLI libraries, like oclif, can help you generate the skeleton of the CLI, stuff like subcommands, options, etc. (I'm in the process of writing the integration so you can generate a Fig completion spec the same way!)
The difference is that with Fig you can add richer completions as well. For instance, Fig's completion for `npm install` allows you to search across all npm packages: https://twitter.com/fig/status/1385401292193865731 https://twitter.com/fig/status/1385401292193865731
- spockz 5y agoCobra has also support for completion. Through defining a ValidArgsFunction. This seems the same level as the completion shown for npm install.