Paul Scott 82394debb7 cmd/tailscale: add shell tab-completion 2 years ago
..
LICENSE.txt 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
README.md 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
cobra.go 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.bash 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.bash.gz 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.fish 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.fish.gz 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.go 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.ps1 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.ps1.gz 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.zsh 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
comp.zsh.gz 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago
gen.go 82394debb7 cmd/tailscale: add shell tab-completion 1 year ago

README.md

github.com/spf13/cobra

This package contains a copy of the Apache 2.0-licensed shell scripts that Cobra uses to integrate tab-completion into bash, zsh, fish and powershell, and the constants that interface with them. We are re-using these scripts to implement similar tab-completion for ffcli and the standard library flag package.

The shell scripts were Go constants in the Cobra code, but we have extracted them into separate files to facilitate gzipping them, and have removed the activeHelp functionality from them.