Documentation
¶
Overview ¶
Package aliases stores user-defined command shortcuts in ~/.config/bitbottle/aliases.yml. Two flavors:
- command aliases: `bitbottle alias set prs 'pr list --author @me'`
- shell aliases: `bitbottle alias set deploy '!ssh prod ...'` (! prefix)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckShadow ¶
CheckShadow returns an error when name conflicts with a built-in command. Caller passes the list of top-level command names from the root cobra command.
Types ¶
type Expansion ¶
type Expansion struct {
// Args is non-nil for command aliases. The first element is the bitbottle
// subcommand to dispatch; remaining elements are its args. Caller's trailing
// args (after the alias name on the command line) are appended verbatim.
Args []string
// Shell, when non-empty, is the literal command line to hand to $SHELL -c.
// Args is nil in this case. Argument interpolation ($1..$9, $@) has already
// been applied.
Shell string
}
Expansion describes the result of resolving an alias.
Click to show internal directories.
Click to hide internal directories.