complete
complete copied to clipboard
bash completion written in go + bash completion for go command
I ran into troubles when implementing autocompletion for multiple positional arguments _if_ flags are present. ### Scenario: * command with multiple positional arguments (required or optional, doesn't matter) * command...
This eliminates the need to use the unsupported bou.ke/monkey package, which fails to build on darwin/arm64. A better solution might be to remove the use of `os.Exit` entirely since it's...
Encountered issue when trying to install autocompletion for [terraform](https://github.com/hashicorp/terraform) on fresh MacOS with default zsh configuration, using their `terraform -install-autocomplete` command. Raised issue on [terraform git](https://github.com/hashicorp/terraform/issues/25421) and found it imports...
I would like to predict not hardcoded options but pull them from daemon every time. For example I input command `app user remove`, click TAB, and cli would offer me...
This PR adds support for auto-completion of file paths starting `~` which translate to user home dir Signed-off-by: anmolbabu [[email protected]](mailto:[email protected])
Mimics the default behavior of zsh
Hello, The [Travis pipeline uses the CodeCov.io bash uploader](https://github.com/posener/complete/blob/9a4745ac49b29530e07dc2581745a218b646b7a3/.travis.yml#L15) on successful builds. The bash uploader was recently involved in a [security incident](https://about.codecov.io/security-update/). This is both a heads up as well...
Is there any way for a subcommands' prediction to get its parents flags? For example ``` adb -s FA81Y1A02186 uninstall com.blabla ``` -s flag correctly predicts FA81Y1A02186. However, if i...
```go var force = flag.String("f", "", "force") ... // Auto completion cmd := &complete.Command{ Sub: map[string]*complete.Command{ "update": { Sub: offPred, Flags: map[string]complete.Predictor{ "f": predict.Nothing, }, }, }, } cmd.Complete("") ```...