This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Migrate to urfave/cli #85
Closed
Description
Although https://github.com/cdr/cli offers a minimal wrapper, it's becoming clear that it lacks sufficient features for the growing scope of coder-cli
. I propose we migrate to https://github.com/spf13/cobra https://github.com/urfave/cli. Consider a few advantages that we'll gain "out of the box".
- Suggestions when "unknown command" happens
- bash, zsh, fish, and powershell completion generation
- well designed and standard command validation abstractions
- better persistent flag abstractions
- no more interface upgrading nonsense
- the model of a separate type per command is flawed and, given the lack of generics, is very difficult to abstract