Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitInterrupted ¶ added in v0.4.1
Types ¶
type AppContext ¶ added in v0.4.12
type AppContext struct { // Name holds the current application name. Name string // ConfigPath holds the current application's config path, if any. ConfigPath string // Version holds string representation of a current application's version. Version string }
AppContext represents the application context.
func (*AppContext) RunWithHomeExpand ¶ added in v0.4.12
func (m *AppContext) RunWithHomeExpand(runner Runner) error
RunWithHomeExpand runs the given runner, expanding the config path field by taking in action HOME directory symbol (~) if it exists.
type Runner ¶
type Runner func(appContext AppContext) error
Runner func starts service wrapper by Cobra command.
Click to show internal directories.
Click to hide internal directories.