Documentation
¶
Overview ¶
Package extend finds the extensions a project or user adds to mutti without changing it: custom commands in .mutti/commands.
Index ¶
Constants ¶
View Source
const HostDir = "host"
HostDir is the directory of commands that run on the host; every other directory under commands/ is the name of the service its commands run in.
Variables ¶
This section is empty.
Functions ¶
func FindProjectDir ¶
FindProjectDir returns the .mutti directory of the project containing dir: the closest one on the way up, not beyond the directory holding .git. ok is false if there is none.
func Interpreter ¶
Interpreter is the shell that runs a service command's script: bash if its shebang names bash, sh otherwise.
Types ¶
type Command ¶
type Command struct {
Name string // command name as typed: <file> or, when ambiguous, <dir>:<file>
Service string // service to run in; empty: the host
Path string // script file
Short string // one-line help: the first "# " comment
}
Command is one custom command.
Click to show internal directories.
Click to hide internal directories.