2021-04-22 10:45:36 -03:00
|
|
|
# goreleaser completion
|
|
|
|
|
|
|
|
Prints shell autocompletion scripts for GoReleaser
|
|
|
|
|
|
|
|
## Synopsis
|
|
|
|
|
|
|
|
Allows you to setup your shell to autocomple GoReleaser commands and flags.
|
|
|
|
|
|
|
|
### Bash
|
|
|
|
|
|
|
|
$ source <(goreleaser completion bash)
|
|
|
|
|
|
|
|
To load completions for each session, execute once:
|
|
|
|
|
|
|
|
#### Linux
|
|
|
|
|
|
|
|
$ goreleaser completion bash > /etc/bash_completion.d/goreleaser
|
|
|
|
|
|
|
|
#### MacOS
|
|
|
|
|
|
|
|
$ goreleaser completion bash > /usr/local/etc/bash_completion.d/goreleaser
|
|
|
|
|
|
|
|
### ZSH
|
|
|
|
|
|
|
|
If shell completion is not already enabled in your environment you will need to enable it.
|
|
|
|
You can execute the following once:
|
|
|
|
|
|
|
|
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
|
|
|
|
|
|
|
|
To load completions for each session, execute once:
|
|
|
|
|
|
|
|
$ goreleaser completion zsh > "${fpath[1]}/_goreleaser"
|
|
|
|
|
|
|
|
You will need to start a new shell for this setup to take effect.
|
|
|
|
|
|
|
|
### Fish
|
|
|
|
|
|
|
|
$ goreleaser completion fish | source
|
|
|
|
|
|
|
|
To load completions for each session, execute once:
|
|
|
|
|
|
|
|
$ goreleaser completion fish > ~/.config/fish/completions/goreleaser.fish
|
|
|
|
|
|
|
|
**NOTE**: If you are using an official GoReleaser package, it should setup autocompletions for you out of the box.
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
goreleaser completion [bash|zsh|fish]
|
|
|
|
```
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
```
|
|
|
|
-h, --help help for completion
|
|
|
|
```
|
|
|
|
|
|
|
|
## Options inherited from parent commands
|
|
|
|
|
|
|
|
```
|
|
|
|
--debug Enable debug mode
|
|
|
|
```
|
|
|
|
|
|
|
|
## See also
|
|
|
|
|
2021-06-27 15:40:29 +00:00
|
|
|
* [goreleaser](/cmd/goreleaser/) - Deliver Go binaries as fast and easily as possible
|
2021-04-22 10:45:36 -03:00
|
|
|
|