-
Pranay Singh authored
* CLI consistency - use spf13/cobra for main-chef-wrapper This updates main-chef-wrapper to route commands using cobra instead of a custom switch/case handler. This offers a few advantages for upcoming work: - auto support for shell autocomplete through 'cobra' means we can remove that from `chef-cli`, which will greatly increase the startup time of the Workstation Powershell on Windows. - viewing detailed help for any given command is now a fast operation because we don't have to load ruby VM deps - it will let us replace and/or expand commands in `chef-cli` in an isolated fashion, because each command has its own implementation. (Most implementations current pass through to chef-cli or chef-analyze) * CLI consistency - use spf13/cobra for main-chef-wrapper This updates main-chef-wrapper to route commands using cobra instead of a custom switch/case handler. This offers a few advantages for upcoming work: - auto support for shell autocomplete through 'cobra' means we can remove that from `chef-cli`, which will greatly increase the startup time of the Workstation Powershell on Windows. - viewing detailed help for any given command is now a fast operation because we don't have to load ruby VM deps - it will let us replace and/or expand commands in `chef-cli` in an isolated fashion, because each command has its own implementation. (Most implementations current pass through to chef-cli or chef-analyze) Co-authored-by:
Marc A. Paradise <marc.paradise@gmail.com> Co-authored-by:
Mudassar Shafique <15931574+mudash@users.noreply.github.com> Co-authored-by:
Nikhil Gupta <nikhilgupta2102@gmail.com> Co-authored-by:
Nikhil Gupta <ngupta@progress.com> Co-authored-by:
Pranay Singh <i5singh.pranay@gmail.com>