Documentation ¶
Overview ¶
Package hello provides "hello command" logic and associated types. By convention, the construction function for the primary type (also named "hello") is simply named "New". For other construction functions, the name of the type is used as a suffix. For instance, "hello.NewInfo()" for the type "hello.Info". Similarly, "Info" would be used as a prefix or suffix for the info-related types like "InfoRunParams". Each "group of types" is usually expressed in its own file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hello ¶
type Hello struct {
// contains filtered or unexported fields
}
Hello defines the app-level dependencies that are accessible within the Run function.
type Params ¶
Params defines the parameters needed to execute a given runner. These values are typically collected from flags and arguments entered into the cli, but there is no reason that they couldn't be set in another manner.
type Text ¶
type Text struct { Value string // contains filtered or unexported fields }
Text represents an implementation of captain.FlagMarshaler. It is a trivial example, and does not do very much interesting except provide a way to check if it has been set by the user.