1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/www/docs/cmd/goreleaser_completion.md
Carlos A Becker f9b4fc7476
docs: improvements
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 15:40:29 +00:00

1.4 KiB

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

  • goreleaser - Deliver Go binaries as fast and easily as possible