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, else 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 ¶
Flags of a launch given, by their first spelling, with the values of those that take one 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)