Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "" Commit = "" )
View Source
var (
HomeFlag = "home"
)
Functions ¶
func BuildDefaultCmd ¶
BuildDefaultCmd allows to build cli Executor containing a root command that has name, description, version, init and start commands implementations
func PrepareRootCmd ¶
PrepareRootCmd prepares the given command binding all the viper flags
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents configuration for "init" and "start" commands
func NewCmdConfig ¶
NewCmdConfig allows to build a new Config instance
func (*Config) GetInitConfig ¶
GetInitConfig returns the config used during init command
func (*Config) GetStartConfig ¶
func (c *Config) GetStartConfig() *startcmd.StartConfig
GetStartConfig returns the config used during start command
func (*Config) StartConfig ¶
func (c *Config) StartConfig(cfg *startcmd.StartConfig) *Config
StartConfig sets cfg as the start command configuration
Click to show internal directories.
Click to hide internal directories.