cli icon indicating copy to clipboard operation
cli copied to clipboard

A Go library for implementing command-line interfaces.

Results 12 cli issues
Sort by recently updated
recently updated
newest added

- Upgrade sprig to get goutils to [v1.1.1](https://github.com/Masterminds/goutils/releases/tag/v1.1.1) which has a security fix

This addresses https://github.com/Masterminds/goutils/security/advisories/GHSA-xg2h-wx96-xgxr It seems unlikely that this library would be affected by the vulnerability, but also it is just good practice to keep dependencies up to date.

InvalidCommandFunc is a callback called if an invalid command is passed.

Complete v2 includes some improvements, but I mostly perform this PR because it introduced breaking changes which breaks clients of this library which are not yet able to use go...

- This makes the prompts easier to test, e.g., if we ask for both username and password, we can now simply do `printf "myName\nmyPassword\n" | myCli`. - We don't create...

Noticed this behavior on an internal tool, essentially, if you have flags defined for a command, then execute a subcommand of that command with a flag before the subcommand, then...

For example the following is a zsh completion function for command `foo`: ``` #compdef _foo foo compadd first second third fourth ``` So, if we type `foo ` in the...

if I run the cli in interactive mode, I should be able to run the sub commands without having to type the cli name again. example: ``` $ mycli >...

Update to https://github.com/Masterminds/sprig/releases/tag/v3.2.1 or later to remove https://github.com/Masterminds/goutils/security/advisories/GHSA-xg2h-wx96-xgxr.