Package Usage: go: github.com/posener/complete
Package complete provides a tool for bash writing bash completion in go, and bash completion for the go command line.
Writing bash completion scripts is a hard work. This package provides an easy way
to create bash completion scripts for any command, and also an easy way to install/uninstall
the completion of the command.
In ./cmd/gocomplete there is an example for bash completion for the `go` command line.
This is an example that uses the `complete` package on the `go` command - the `complete` package
can also be used to implement any completions, see #usage.
1. Type in your shell:
2. Restart your shell
Uninstall by `gocomplete -uninstall`
- Complete `go` command, including sub commands and all flags.
- Complete packages names or `.go` files when necessary.
- Complete test names after `-run` flag.
Supported shells:
- [x] bash
- [x] zsh
- [x] fish
Assuming you have program called `run` and you want to have bash completion
for it, meaning, if you type `run` then space, then press the `Tab` key,
the shell will suggest relevant complete options.
In that case, we will create a program called `runcomplete`, a go program,
with a `func main()` and so, that will make the completion of the `run`
program. Once the `runcomplete` will be in a binary form, we could
`runcomplete -install` and that will add to our shell all the bash completion
options for `run`.
So here it is:
In case that the program that we want to complete is written in go we
can make it self completing.
Here is an example: ./example/self/main.go .
6 versions
Latest release: over 5 years ago
6,382 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/posener/complete
Dependent Repos 12
swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi
Last synced: 7 months ago - Pushed: 11 months ago
clipos/toolkit
CLIP OS toolkit (cosmk)Size: 806 KB - Last synced: about 19 hours ago - Pushed: over 3 years ago

radiofrance/ipahealthcheck_exporter Fork of camptocamp/ipahealthcheck_exporter
Prometheus exporter for exposing ipa-healthcheck tool checks as metricsSize: 60.5 KB - Last synced: about 16 hours ago - Pushed: almost 4 years ago

signaux-faibles/wekan-alerter
wekan-alerterSize: 44.9 KB - Last synced: about 21 hours ago - Pushed: over 2 years ago

signaux-faibles/goup
Serveur minimaliste pour téléverser des fichiers avec une gestion de droitsSize: 63.1 MB - Last synced: about 21 hours ago - Pushed: over 2 years ago

radiofrance/helm-chart-sonarqube Fork of SonarSource/helm-chart-sonarqube
Size: 2.99 MB - Last synced: 7 months ago - Pushed: 9 months ago

web-et-numerique/factory/llle_project/cozy-stack
Fork of cozy-stack https://github.com/cozy/cozy-stackLast synced: 7 months ago

go-hep/hep
hep is the mono repository holding all of go-hep.org/x/hep packages and toolsLast synced: 7 months ago
ANSSI-FR/ultrablue
User-friendly Lightweight TPM Remote Attestation over BluetoothSize: 3.87 MB - Last synced: 1 day ago - Pushed: about 2 years ago


InseeFrLab/utils
A collection of scripts that may have been used at some point :)Size: 41 KB - Last synced: about 16 hours ago - Pushed: over 1 year ago


