Documentation
¶
Index ¶
Constants ¶
View Source
const ( Text string = "text" GitHub string = "github" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandContext ¶
type CommandContext struct {
Output string
LogLevel zerolog.Level
WorkingDirectory string
ConfigurationFileName string
// contains filtered or unexported fields
}
func NewCommandContext ¶
func NewCommandContext(defaultWorkingDirectory string) *CommandContext
func (*CommandContext) RootContext ¶
func (c *CommandContext) RootContext() *context.Context
type ConfigurationFileNameFlag ¶
type ConfigurationFileNameFlag struct {
Context *CommandContext
Logger *zerolog.Logger
}
func (*ConfigurationFileNameFlag) Set ¶
func (c *ConfigurationFileNameFlag) Set(value string) error
func (*ConfigurationFileNameFlag) String ¶
func (c *ConfigurationFileNameFlag) String() string
func (*ConfigurationFileNameFlag) Type ¶
func (c *ConfigurationFileNameFlag) Type() string
type LogLevelFlag ¶
type LogLevelFlag struct {
Context *CommandContext
Logger *zerolog.Logger
}
func (*LogLevelFlag) Set ¶
func (l *LogLevelFlag) Set(value string) error
func (*LogLevelFlag) String ¶
func (l *LogLevelFlag) String() string
func (*LogLevelFlag) Type ¶
func (l *LogLevelFlag) Type() string
type OutputTypeFlag ¶
type OutputTypeFlag struct {
Context *CommandContext
}
func (*OutputTypeFlag) Set ¶
func (o *OutputTypeFlag) Set(value string) error
func (*OutputTypeFlag) String ¶
func (o *OutputTypeFlag) String() string
func (*OutputTypeFlag) Type ¶
func (o *OutputTypeFlag) Type() string
type WorkingDirectoryFlag ¶
type WorkingDirectoryFlag struct {
Context *CommandContext
Logger *zerolog.Logger
}
func (*WorkingDirectoryFlag) Set ¶
func (w *WorkingDirectoryFlag) Set(value string) error
func (*WorkingDirectoryFlag) String ¶
func (w *WorkingDirectoryFlag) String() string
func (*WorkingDirectoryFlag) Type ¶
func (w *WorkingDirectoryFlag) Type() string
Click to show internal directories.
Click to hide internal directories.