Documentation
¶
Overview ¶
Package setup prepares the shell of a developer: completion for platformgo and the short pgo alias.
The shell configuration gets one block between markers, so running setup again replaces the block and --remove takes it out without touching anything else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Shells = []string{"bash", "fish", "zsh"}
Shells setup knows.
Functions ¶
func Completion ¶
Completion returns the completion script of a shell for the binary and its aliases.
func ScriptPath ¶
ScriptPath is where the completion script of the shell goes.
Types ¶
type Command ¶
type Command struct {
Name string
Summary string
Sub []string // subcommands, such as create of migrate
Args string // what a positional argument completes to: "dir" or ""
Flags []Flag
}
Command is a command of the CLI as completion sees it.
Click to show internal directories.
Click to hide internal directories.