You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current implementation there is custom abstractions in place to implement sub-commands. From one side it is reasonable since it does not require additional 3rd party dependencies, on the other hand it is a case of NIH perhaps.
At some point it may make sense to consider some lite-weight CLI "framework" like urfave/cli.
But in any case adoption should be carefully weighed.
The text was updated successfully, but these errors were encountered:
I'd also take a look at https://github.com/spf13/cobra , it has very solid docs and adoption (e.g. it's used by most Go-based CLI tools like kubectl), and has an optional command/subcommand generator, which greatly speeds up work.
@DaniruKun Thank you for suggestions. Out of the context of this specific project I evaluated cobra. I agree to all points you highlight, the main reason for my subjective opinion against adopting it - it's relatively heavy-weight dependency. I prefer lightweight.
In current implementation there is custom abstractions in place to implement sub-commands. From one side it is reasonable since it does not require additional 3rd party dependencies, on the other hand it is a case of NIH perhaps.
At some point it may make sense to consider some lite-weight CLI "framework" like urfave/cli.
But in any case adoption should be carefully weighed.
The text was updated successfully, but these errors were encountered: