You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Paul Scott 82394debb7 cmd/tailscale: add shell tab-completion 2 years ago
..
LICENSE.txt cmd/tailscale: add shell tab-completion 2 years ago
README.md cmd/tailscale: add shell tab-completion 2 years ago
cobra.go cmd/tailscale: add shell tab-completion 2 years ago
comp.bash cmd/tailscale: add shell tab-completion 2 years ago
comp.bash.gz cmd/tailscale: add shell tab-completion 2 years ago
comp.fish cmd/tailscale: add shell tab-completion 2 years ago
comp.fish.gz cmd/tailscale: add shell tab-completion 2 years ago
comp.go cmd/tailscale: add shell tab-completion 2 years ago
comp.ps1 cmd/tailscale: add shell tab-completion 2 years ago
comp.ps1.gz cmd/tailscale: add shell tab-completion 2 years ago
comp.zsh cmd/tailscale: add shell tab-completion 2 years ago
comp.zsh.gz cmd/tailscale: add shell tab-completion 2 years ago
gen.go cmd/tailscale: add shell tab-completion 2 years 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.