Documentation
¶
Overview ¶
Package launch is what features do around the app as the command line opens it: flags of the launch they add, and their work before the app runs and once it ends, such as a git worktree the launch's sessions work in
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Folder ¶
Folder the launch works in: the one WithFolder set, otherwise the process's working folder. Empty when neither can be read
func WithFolder ¶
Context of a launch that works in the folder, such as a worktree, without changing the process's working folder
Types ¶
type Flag ¶
type Flag struct {
// Spellings, such as -w and --worktree
Names []string
Help string
// What the value it takes names, such as "names", for a flag given as -s NAME or --skills=NAME, as often as wanted. Empty for a flag
// that takes none
Value string
}
A flag of the launch
type Given ¶
Given maps each given launch flag, by its first spelling, to its values in the order they were given.
func From ¶
Flags of the launch the context carries, by their first spelling. None when it carries none
type Launch ¶
type Launch struct {
Registry
// contains filtered or unexported fields
}
type Registrant ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) Around ¶
Runs the app inside the work of every registrant, the first registered outermost
func (*Registry) Register ¶
func (r *Registry) Register(registrant Registrant)