Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Defaults = map[string]string{
"mine": `issue list -a{me} -s~Done`,
"wip": `issue list -a{me} -s"In Progress"`,
"todo": `issue list -a{me} -s"To Do" --order-by priority`,
"cur": `sprint list --current`,
"mycur": `sprint list --current -a{me}`,
"recent": `issue list --history`,
"watching": `issue list --watching`,
"bugs": `issue list -tBug -s~Done --order-by priority`,
}
Defaults ship with jt and can be overridden (or disabled with an empty value) under `aliases:` in the config.
Functions ¶
func IsBuiltin ¶
IsBuiltin reports whether name resolves to a real command (or its alias), which always wins over a user alias.
Types ¶
type Expansion ¶
type Expansion struct {
// Args replaces os.Args[1:] for a regular alias.
Args []string
// Shell is set for "!" aliases: run it with sh -c, Args as "$@".
Shell string
// Env carries global flags given before a shell alias (JT_PROJECT,
// JT_CONFIG_FILE) so nested jt calls in the script honour them.
Env []string
}
Expansion is the result of resolving an alias.