Documentation
¶
Overview ¶
Package completion generates shell tab-completion scripts for gitmap.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllCommands ¶
func AllCommands() []string
AllCommands returns every command name and alias offered by tab-completion.
The list is the union of generatedCommands (auto-extracted from the constants package by internal/gencommands) and manualExtras. Run `go generate ./completion/...` after adding new Cmd* constants to refresh the generated portion.
func DetectShell ¶
func DetectShell() string
DetectShell returns the current shell type based on environment.
func InstallCDFunction ¶
InstallCDFunction writes the gcd shell wrapper to the user's profile.
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
gencommands
command
Command gencommands generates allcommands_generated.go by extracting every Cmd* string constant from constants files in the sibling constants/ package that have explicitly opted into completion via marker comments.
|
Command gencommands generates allcommands_generated.go by extracting every Cmd* string constant from constants files in the sibling constants/ package that have explicitly opted into completion via marker comments. |
Click to show internal directories.
Click to hide internal directories.