Documentation
¶
Overview ¶
Package shell composes the completion scripts git-stack installs: cobra's generated script for the git-stack binary plus the hooks that make `git stack <TAB>` and git aliases such as `git co <TAB>` complete through the same engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var All = []Shell{Bash, Zsh, Fish}
All lists the supported shells.
Functions ¶
func Arg ¶ added in v0.2.0
Arg makes s safe to paste as one argument into bash, zsh or fish: as it is when nothing in it is special, otherwise in single quotes ('\” for a quote, which all three read the same way). ok is false when s holds a control character: no quoting makes that safe to paste (a newline ends the command, a pasted tab can trigger completion), so callers should describe what to do rather than print a command.
Types ¶
type Env ¶
Env is the subset of the environment path resolution needs.
func (Env) InstallPath ¶
InstallPath is where the composed script lives for sh.