跳转至

Platypus completion

platypus completion

Generate completion script

Synopsis

To load completions:

Bash:

1
2
3
4
5
6
7
$ source <(platypus completion bash)

# To load completions for each session, execute once:
# Linux:
$ platypus completion bash > /etc/bash_completion.d/platypus
# macOS:
$ platypus completion bash > $(brew --prefix)/etc/bash_completion.d/platypus

Zsh:

1
2
3
4
5
6
7
8
9
# 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:
$ platypus completion zsh > "${fpath[1]}/_platypus"

# You will need to start a new shell for this setup to take effect.

fish:

1
2
3
4
$ platypus completion fish | source

# To load completions for each session, execute once:
$ platypus completion fish > ~/.config/fish/completions/platypus.fish

PowerShell:

1
2
3
4
5
PS> platypus completion powershell | Out-String | Invoke-Expression

# To load completions for every new session, run:
PS> platypus completion powershell > platypus.ps1
# and source this file from your PowerShell profile.
platypus completion [bash|zsh|fish|powershell]

Options

  -h, --help   help for completion

SEE ALSO

  • platypus - Platypus Programming Language for Observability Data Pipeline
Auto generated by spf13/cobra on 15-Dec-2022