Documentation ¶
Index ¶
- Constants
- Variables
- func AddAll[K comparable, V any](toMap map[K]V, fromMap map[K]V)
- func AddIfNotExist[K comparable, V any](key K, value V, target map[K]V)
- func CheckAndCreateDir(directoryPath string)
- func CheckError(err error, msg string, args ...any)
- func Contains[T comparable](list []T, value T) bool
- func ContainsElement[T Comparable](list []T, value T) bool
- func ContainsItemsWithPrefix(list []string, value string) bool
- func Count[K comparable, V any](target map[K]V) (cnt int)
- func CreateDirIfNotExist(directoryPath string) (existed bool, err error)
- func CreateFile(filename string, dir string) (file *os.File)
- func DeleteFileOrDir(path string)
- func Empty(input any) bool
- func Escape(value string) string
- func EscapeSpecials(target string) string
- func FileIsJson(filename string) bool
- func FileIsYaml(filename string) bool
- func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, filename string, ...) error
- func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender func(string) string, ...) error
- func Get[K comparable, V any](key K, target map[K]V) V
- func GetAbsPath(path string) string
- func GetConfigBool(key string) bool
- func GetConfigFloat(key string) float64
- func GetConfigIntWithDefault(key string, defaultValue int) int
- func GetConfigList(key string) []string
- func GetConfigString(key string) string
- func GetFullCmdName(cmd *cobra.Command) string
- func GetPointer[V any](value V) *V
- func GetString(key string, target map[string]any) string
- func HasKey[K comparable, V any](key K, target map[K]V) bool
- func InitCommands(initFunction ...func())
- func IsDash(character rune) bool
- func IsEmpty(value string) bool
- func IsInt(value string) bool
- func IsNotEmpty(value string) bool
- func LineWrap(s string, length int) string
- func LoadPropertiesMapYamlToMap(filename, path string, properties *Properties)
- func LoadYamlFileToStruct[T any](path string) (*T, error)
- func LogError(err error, msg string, args ...any)
- func LogErrorTrace(err error, msg string, args ...any)
- func MakeFlagRequired(cmd *cobra.Command, flagName string)
- func Merge[K comparable, V any](baseMap map[K]V, overridingMap map[K]V) map[K]V
- func NotEmpty(input any) bool
- func OpenFileAtPath(path string, homepath string) (reader *os.File, err error)
- func OrDefault(defaulVal string, input any) any
- func OrEmpty(input any) any
- func PathExists(filePath string) (exists bool)
- func Print[K comparable, V any](target map[K]V, msg string, args ...any)
- func PrintPadded[K comparable, V any](target map[K]V, depth int, msg string, args ...any)
- func Quote(input any) string
- func RandomWaitMillis(max int)
- func Remove[K comparable, V any](key K, target map[K]V) bool
- func RemoveDir(path string)
- func RemoveLineEndings(value string) string
- func RemoveNonPrintingUnicode(value string) string
- func Reset()
- func SendAppLogEvent(format string, args ...interface{})
- func SendErrorEvent(source string, err error, msg string, args ...interface{})
- func SliceIsEmpty[T comparable](list []T) bool
- func StripPathSeparators(value string) string
- func Ternary(condition bool, trueOut any, falseOut any) any
- func ThrowError(msg string, args ...any)
- func ToString(value int) string
- func WriteStringContentsToFile(path string, contents string, force bool) error
- func WriteStructToFile(target any, filename string, path string)
- func WriteStructsToFile(target any, filename string, path string, createDir bool) (exportCnt int)
- type ApplicationEvent
- type ApplicationState
- type Bus
- func (b *Bus) AllHandlers() []Handler
- func (b *Bus) ClearRegistrations()
- func (b *Bus) Register(filter string, emptyEvent Event, handler Handler)
- func (b *Bus) RegisterHandler(registration *Registration)
- func (b *Bus) Registrations() []*Registration
- func (b *Bus) Send(event Event)
- func (b *Bus) Sent() int
- type CmdConfig
- func (cc *CmdConfig) Build() *cobra.Command
- func (cc *CmdConfig) DisableTracking() *CmdConfig
- func (cc *CmdConfig) EnableTracking() *CmdConfig
- func (cc *CmdConfig) SetAliases(alias ...string) *CmdConfig
- func (cc *CmdConfig) SetArgValidations(argValidations cobra.PositionalArgs) *CmdConfig
- func (cc *CmdConfig) SetLongDescription(desc string) *CmdConfig
- func (cc *CmdConfig) SetPersistentPostRun(cmdFunc CmdFunc) *CmdConfig
- func (cc *CmdConfig) SetPersistentPreRun(cmdFunc CmdFunc) *CmdConfig
- func (cc *CmdConfig) SetPostRun(cmdFunc CmdFunc) *CmdConfig
- func (cc *CmdConfig) SetPreRun(cmdFunc CmdFunc) *CmdConfig
- func (cc *CmdConfig) SetRun(cmdFunc CmdFunc) *CmdConfig
- func (cc *CmdConfig) SetShortDescription(desc string) *CmdConfig
- func (cc *CmdConfig) SetVersion(version string) *CmdConfig
- type CmdFunc
- type Comparable
- type Configuration
- func (c *Configuration) Default()
- func (c *Configuration) DeleteFromMap(propertyName string, key string)
- func (c *Configuration) Get(propertyName string) string
- func (c *Configuration) GetBool(propertyName string) bool
- func (c *Configuration) GetFloat(propertyName string) float64
- func (c *Configuration) GetInt(propertyName string) int
- func (c *Configuration) GetIntWithDefault(propertyName string, defaultValue int) int
- func (c *Configuration) GetList(propertyName string) []string
- func (c *Configuration) GetMap(propertyName string) map[string]string
- func (c *Configuration) HasResource(name string, property string) bool
- func (c *Configuration) Load(cfgFile string)
- func (c *Configuration) Print()
- func (c *Configuration) PrintMapProperty(propertyName string)
- func (c *Configuration) Update(propertyName string, value string)
- func (c *Configuration) UpdateList(propertyName string, value string)
- func (c *Configuration) UpdateMap(propertyName string, key string, value string)
- func (c *Configuration) Write(msg string, args ...string)
- type DeadLetter
- type DeadLetterEvent
- type DefaultEvent
- func (e *DefaultEvent) Data() map[string]any
- func (e *DefaultEvent) Domain() string
- func (e *DefaultEvent) Error() error
- func (e *DefaultEvent) Get(key string) any
- func (e *DefaultEvent) GetDomain() any
- func (e *DefaultEvent) Matches(filter string) bool
- func (e *DefaultEvent) Message() string
- func (e *DefaultEvent) Name() string
- type ErrorEvent
- type Event
- type FileDecoder
- type FileEncoder
- type FileInfo
- func CreateDir(path string) *FileInfo
- func CreateTempFile(dir string, filename string) *FileInfo
- func CreateUniqueTempDir(parentDir string) *FileInfo
- func GetDirsAtPath(path string, createIfNotExit bool) (results []*FileInfo)
- func GetFilesAtPath(path string, excludeDirs bool) (results []*FileInfo)
- func GetWorkingDir() *FileInfo
- func NewFileInfo(name string, absPath string) *FileInfo
- func NewFileInfoFromPath(path string) *FileInfo
- func (fi *FileInfo) AbsFilePath() string
- func (fi *FileInfo) Close()
- func (fi *FileInfo) Create() *FileInfo
- func (fi *FileInfo) Exists() bool
- func (fi *FileInfo) GetFileInfo() os.FileInfo
- func (fi *FileInfo) MoveToPath(path string)
- func (fi *FileInfo) Open()
- func (fi *FileInfo) OpenForWriting(truncate bool)
- func (fi *FileInfo) ReadFully() []byte
- func (fi *FileInfo) WriteFile(data []byte)
- type Handler
- type LogEvent
- type OverridableProperties
- type PersistenceConfig
- type PersistenceContext
- func (c *PersistenceContext) Create(value any)
- func (c *PersistenceContext) InitDB()
- func (c *PersistenceContext) OmitFields(omitted ...string) *gorm.DB
- func (c *PersistenceContext) OpenDB()
- func (c *PersistenceContext) PopulateReferenceData()
- func (c *PersistenceContext) Save(value any)
- func (c *PersistenceContext) SaveFull(value any)
- func (c *PersistenceContext) SaveOmitting(value any, omitted ...string)
- type Properties
- type PropertyManager
- func (p *PropertyManager) Add(path string, props *OverridableProperties)
- func (p *PropertyManager) Get(path string) *OverridableProperties
- func (p *PropertyManager) GetFirstSetWithSuffix(suffix string) *OverridableProperties
- func (p *PropertyManager) GetSetsWithSuffix(suffix string) (found []*OverridableProperties)
- func (p *PropertyManager) Has(path string) bool
- func (p *PropertyManager) SetCount() int
- type Regex
- type Registration
- type RegistrationHandlers
- type State
- func (s *State) AppendDataDir(appendPath string) *State
- func (s *State) CheckError(terminate bool, err error, msg string, args ...any)
- func (s *State) Config() *Configuration
- func (s *State) DataDir() string
- func (s *State) DefaultConfig() *State
- func (s *State) Duration() time.Duration
- func (s *State) EnableBaseDataDir(path string) *State
- func (s *State) EnablePersistence(config *PersistenceConfig) *State
- func (s *State) EnableTempDir() *State
- func (s *State) Errored() bool
- func (s *State) FullCommand() string
- func (s *State) GetFromState(name string) any
- func (s *State) HomeDir() string
- func (s *State) InitConfig(defaults Properties) *State
- func (s *State) PrintConfig() *State
- func (s *State) PrintVersion()
- func (s *State) RemoveFromState(name string) *State
- func (s *State) SetAppName(name string) *State
- func (s *State) SetBuildDate(date string) *State
- func (s *State) SetCmd(cmd *cobra.Command) *State
- func (s *State) SetCommitSha(sha string) *State
- func (s *State) SetConfigFileName(name string) *State
- func (s *State) SetLogging(verbose bool) *State
- func (s *State) SetState(newState ApplicationState) *State
- func (s *State) SetTempDir(path string) *State
- func (s *State) SetVersion(version string) *State
- func (s *State) StartTime() time.Time
- func (s *State) StopTime() time.Time
- func (s *State) TempDir() string
- func (s *State) TrackCmd(cmd *cobra.Command, _ []string)
- func (s *State) UpdateConfigProperty(property, value string) *State
- func (s *State) UpdateState(name string, value any) *State
- func (s *State) UseHomeDir(uhd bool) *State
- func (s *State) User() string
- func (s *State) Verbose() bool
- func (s *State) WorkDir() string
Constants ¶
View Source
const ( // Starting - The application is in the process of bootstrapping and is not fully operational Starting = iota // Running - The application is fully loaded/bootstrapped and is executing normally Running // Stopping - The application is stopping or shutting down Stopping // Stopped - The application is fully stopped or shutdown. Are you ever going to actually be able to see this state? Stopped // Paused - The application is in a state of suspended animation. It is up and can be restarted instantly but is not consuming CPU Paused // Errored - The application has suffered an error or exception. It is not running normally. Errored )
View Source
const ( QUOTE_FUNC_NAME = "quote" EMPTY_FUNC_NAME = "empty" NOT_EMPTY_FUNC_NAME = "notEmpty" OR_DEFAULT_FUNC_NAME = "orDefault" OR_EMPTY_FUNC_NAME = "orEmpty" TERNARY_FUNC_NAME = "ternary" )
View Source
const JSON string = "json"
View Source
const PathSeparator = string(os.PathSeparator)
View Source
const YAML string = "yaml"
View Source
const YML string = "yml"
Variables ¶
View Source
var (
EventBus = newBus()
)
Functions ¶
func AddAll ¶
func AddAll[K comparable, V any](toMap map[K]V, fromMap map[K]V)
func AddIfNotExist ¶
func AddIfNotExist[K comparable, V any](key K, value V, target map[K]V)
func CheckAndCreateDir ¶
func CheckAndCreateDir(directoryPath string)
func CheckError ¶
func Contains ¶
func Contains[T comparable](list []T, value T) bool
func ContainsElement ¶
func ContainsElement[T Comparable](list []T, value T) bool
func ContainsItemsWithPrefix ¶
func Count ¶
func Count[K comparable, V any](target map[K]V) (cnt int)
func CreateDirIfNotExist ¶
func DeleteFileOrDir ¶
func DeleteFileOrDir(path string)
func EscapeSpecials ¶
func FileIsJson ¶
func FileIsYaml ¶
func GenMarkdownCustom ¶
func GenMarkdownCustom( cmd *cobra.Command, w io.Writer, filename string, linkHandler func(string, string) string, ) error
GenMarkdownCustom creates custom markdown output.
func GenMarkdownTreeCustom ¶
func GenMarkdownTreeCustom( cmd *cobra.Command, dir string, filePrepender func(string) string, linkHandler func(string, string) string, ) error
GenMarkdownTreeCustom is the same as GenMarkdownTree, but with custom filePrepender and linkHandler.
func Get ¶
func Get[K comparable, V any](key K, target map[K]V) V
func GetAbsPath ¶
func GetConfigBool ¶
func GetConfigFloat ¶
func GetConfigIntWithDefault ¶
func GetConfigList ¶
func GetConfigString ¶
func GetFullCmdName ¶
func GetPointer ¶
func GetPointer[V any](value V) *V
func HasKey ¶
func HasKey[K comparable, V any](key K, target map[K]V) bool
func InitCommands ¶
func InitCommands(initFunction ...func())
func IsNotEmpty ¶
func LoadPropertiesMapYamlToMap ¶
func LoadPropertiesMapYamlToMap(filename, path string, properties *Properties)
func LoadYamlFileToStruct ¶
func LogErrorTrace ¶
func MakeFlagRequired ¶
func Merge ¶
func Merge[K comparable, V any](baseMap map[K]V, overridingMap map[K]V) map[K]V
func OpenFileAtPath ¶
func PathExists ¶
func PrintPadded ¶
func PrintPadded[K comparable, V any](target map[K]V, depth int, msg string, args ...any)
func RandomWaitMillis ¶
func RandomWaitMillis(max int)
func Remove ¶
func Remove[K comparable, V any](key K, target map[K]V) bool
func RemoveLineEndings ¶
func SendAppLogEvent ¶ added in v0.0.9
func SendAppLogEvent(format string, args ...interface{})
func SendErrorEvent ¶ added in v0.0.9
func SliceIsEmpty ¶
func SliceIsEmpty[T comparable](list []T) bool
func StripPathSeparators ¶
func ThrowError ¶
func WriteStructToFile ¶
Types ¶
type ApplicationEvent ¶ added in v0.0.9
type ApplicationEvent struct { Name string Type string Category string Data Properties }
type Bus ¶ added in v0.0.9
type Bus struct {
// contains filtered or unexported fields
}
func (*Bus) AllHandlers ¶ added in v0.0.9
func (*Bus) ClearRegistrations ¶ added in v0.0.9
func (b *Bus) ClearRegistrations()
func (*Bus) RegisterHandler ¶ added in v0.0.9
func (b *Bus) RegisterHandler(registration *Registration)
func (*Bus) Registrations ¶ added in v0.0.9
func (b *Bus) Registrations() []*Registration
type CmdConfig ¶
type CmdConfig struct {
// contains filtered or unexported fields
}
func CommandBuilder ¶
func (*CmdConfig) DisableTracking ¶
func (*CmdConfig) EnableTracking ¶
func (*CmdConfig) SetAliases ¶
func (*CmdConfig) SetArgValidations ¶
func (cc *CmdConfig) SetArgValidations(argValidations cobra.PositionalArgs) *CmdConfig
func (*CmdConfig) SetLongDescription ¶
func (*CmdConfig) SetPersistentPostRun ¶
func (*CmdConfig) SetPersistentPreRun ¶
func (*CmdConfig) SetPostRun ¶
func (*CmdConfig) SetShortDescription ¶
func (*CmdConfig) SetVersion ¶
type Comparable ¶
type Configuration ¶
type Configuration struct { LoadedFrom string RunID uint // contains filtered or unexported fields }
func NewConfiguration ¶
func NewConfiguration(filename string, writeInHome bool, defaults Properties) *Configuration
func (*Configuration) Default ¶
func (c *Configuration) Default()
func (*Configuration) DeleteFromMap ¶
func (c *Configuration) DeleteFromMap(propertyName string, key string)
func (*Configuration) Get ¶
func (c *Configuration) Get(propertyName string) string
func (*Configuration) GetBool ¶
func (c *Configuration) GetBool(propertyName string) bool
func (*Configuration) GetFloat ¶
func (c *Configuration) GetFloat(propertyName string) float64
func (*Configuration) GetInt ¶
func (c *Configuration) GetInt(propertyName string) int
func (*Configuration) GetIntWithDefault ¶
func (c *Configuration) GetIntWithDefault(propertyName string, defaultValue int) int
func (*Configuration) GetList ¶
func (c *Configuration) GetList(propertyName string) []string
func (*Configuration) GetMap ¶
func (c *Configuration) GetMap(propertyName string) map[string]string
func (*Configuration) HasResource ¶
func (c *Configuration) HasResource(name string, property string) bool
func (*Configuration) Load ¶
func (c *Configuration) Load(cfgFile string)
func (*Configuration) Print ¶
func (c *Configuration) Print()
func (*Configuration) PrintMapProperty ¶
func (c *Configuration) PrintMapProperty(propertyName string)
func (*Configuration) Update ¶
func (c *Configuration) Update(propertyName string, value string)
func (*Configuration) UpdateList ¶
func (c *Configuration) UpdateList(propertyName string, value string)
func (*Configuration) UpdateMap ¶
func (c *Configuration) UpdateMap(propertyName string, key string, value string)
func (*Configuration) Write ¶
func (c *Configuration) Write(msg string, args ...string)
type DeadLetter ¶ added in v0.0.9
type DeadLetter struct {
// contains filtered or unexported fields
}
func NewDeadLetter ¶ added in v0.0.9
func NewDeadLetter(event Event, err error, handlers []Handler) *DeadLetter
type DeadLetterEvent ¶ added in v0.0.9
type DeadLetterEvent struct {
DefaultEvent
}
func NewDeadLetterEvent ¶ added in v0.0.9
func NewDeadLetterEvent(event Event, err error, handlers []Handler) *DeadLetterEvent
func NewEmptyDeadLetterEvent ¶ added in v0.0.9
func NewEmptyDeadLetterEvent() *DeadLetterEvent
type DefaultEvent ¶ added in v0.0.9
func (*DefaultEvent) Data ¶ added in v0.0.9
func (e *DefaultEvent) Data() map[string]any
func (*DefaultEvent) Domain ¶ added in v0.0.9
func (e *DefaultEvent) Domain() string
func (*DefaultEvent) Error ¶ added in v0.0.9
func (e *DefaultEvent) Error() error
func (*DefaultEvent) Get ¶ added in v0.0.9
func (e *DefaultEvent) Get(key string) any
func (*DefaultEvent) GetDomain ¶ added in v0.0.9
func (e *DefaultEvent) GetDomain() any
func (*DefaultEvent) Matches ¶ added in v0.0.9
func (e *DefaultEvent) Matches(filter string) bool
func (*DefaultEvent) Message ¶ added in v0.0.9
func (e *DefaultEvent) Message() string
func (*DefaultEvent) Name ¶ added in v0.0.9
func (e *DefaultEvent) Name() string
type ErrorEvent ¶ added in v0.0.9
type ErrorEvent struct {
DefaultEvent
}
func NewEmptyErrorEvent ¶ added in v0.0.9
func NewEmptyErrorEvent() *ErrorEvent
func NewErrorEvent ¶ added in v0.0.9
func NewErrorEvent(source string, err error, fmtMsg string, args ...interface{}) *ErrorEvent
type FileDecoder ¶
type FileEncoder ¶
type FileInfo ¶
type FileInfo struct { Name string BaseAbsPath string Info os.FileInfo IsDir bool FileHandle *os.File }
func CreateTempFile ¶
func CreateUniqueTempDir ¶
func GetDirsAtPath ¶
func GetFilesAtPath ¶
func GetWorkingDir ¶
func GetWorkingDir() *FileInfo
func NewFileInfo ¶
func NewFileInfoFromPath ¶
func (*FileInfo) AbsFilePath ¶
func (*FileInfo) GetFileInfo ¶
func (*FileInfo) MoveToPath ¶
func (*FileInfo) OpenForWriting ¶
type LogEvent ¶ added in v0.0.9
type LogEvent struct {
DefaultEvent
}
func NewEmptyLogEvent ¶ added in v0.0.9
func NewEmptyLogEvent() *LogEvent
type OverridableProperties ¶
type OverridableProperties struct { FileName string KeyPath string Path string Contents Properties Children []*OverridableProperties Parent *OverridableProperties }
func NewOverridableProperties ¶
func NewOverridableProperties(filename string, path string) *OverridableProperties
func NewOverriddenProperties ¶
func NewOverriddenProperties(properties *OverridableProperties) *OverridableProperties
func (*OverridableProperties) Add ¶
func (c *OverridableProperties) Add(child *OverridableProperties)
Build Relationships
func (*OverridableProperties) GetGrandestParent ¶
func (c *OverridableProperties) GetGrandestParent() *OverridableProperties
func (*OverridableProperties) GetKeyPath ¶
func (c *OverridableProperties) GetKeyPath() string
func (*OverridableProperties) GetOverriddenProperties ¶
func (c *OverridableProperties) GetOverriddenProperties() Properties
type PersistenceConfig ¶
func NewPersistenceConfig ¶
func NewPersistenceConfig(dbName, path string, entities []any) *PersistenceConfig
type PersistenceContext ¶
type PersistenceContext struct { DB *gorm.DB //Do I really need this? DBFile *FileInfo // contains filtered or unexported fields }
func NewPersistenceContext ¶
func NewPersistenceContext(config *PersistenceConfig) *PersistenceContext
func (*PersistenceContext) Create ¶
func (c *PersistenceContext) Create(value any)
func (*PersistenceContext) InitDB ¶
func (c *PersistenceContext) InitDB()
func (*PersistenceContext) OmitFields ¶
func (c *PersistenceContext) OmitFields(omitted ...string) *gorm.DB
func (*PersistenceContext) OpenDB ¶
func (c *PersistenceContext) OpenDB()
func (*PersistenceContext) PopulateReferenceData ¶
func (c *PersistenceContext) PopulateReferenceData()
func (*PersistenceContext) Save ¶
func (c *PersistenceContext) Save(value any)
func (*PersistenceContext) SaveFull ¶
func (c *PersistenceContext) SaveFull(value any)
func (*PersistenceContext) SaveOmitting ¶
func (c *PersistenceContext) SaveOmitting(value any, omitted ...string)
type Properties ¶
func (Properties) Remove ¶
func (p Properties) Remove(key string) bool
type PropertyManager ¶
type PropertyManager struct {
// contains filtered or unexported fields
}
func NewPropertyManager ¶
func NewPropertyManager() *PropertyManager
func (*PropertyManager) Add ¶
func (p *PropertyManager) Add(path string, props *OverridableProperties)
func (*PropertyManager) Get ¶
func (p *PropertyManager) Get(path string) *OverridableProperties
func (*PropertyManager) GetFirstSetWithSuffix ¶
func (p *PropertyManager) GetFirstSetWithSuffix(suffix string) *OverridableProperties
func (*PropertyManager) GetSetsWithSuffix ¶
func (p *PropertyManager) GetSetsWithSuffix(suffix string) (found []*OverridableProperties)
func (*PropertyManager) Has ¶
func (p *PropertyManager) Has(path string) bool
func (*PropertyManager) SetCount ¶
func (p *PropertyManager) SetCount() int
type Registration ¶ added in v0.0.9
type Registration struct {
// contains filtered or unexported fields
}
func NewRegistration ¶ added in v0.0.9
func NewRegistration(filter string, event Event, handler Handler) *Registration
type RegistrationHandlers ¶ added in v0.0.9
type RegistrationHandlers map[string]*Registration
type State ¶
type State struct { sync.Mutex //Used for locking state to ensure safe concurrent access PersistenceContext *PersistenceContext // contains filtered or unexported fields }
func CurrentState ¶
func CurrentState() *State
func (*State) AppendDataDir ¶
func (*State) CheckError ¶
func (*State) Config ¶
func (s *State) Config() *Configuration
func (*State) DefaultConfig ¶
func (*State) EnableBaseDataDir ¶
func (*State) EnablePersistence ¶
func (s *State) EnablePersistence(config *PersistenceConfig) *State
func (*State) EnableTempDir ¶
func (*State) FullCommand ¶
func (*State) GetFromState ¶ added in v0.0.7
func (*State) InitConfig ¶
func (s *State) InitConfig(defaults Properties) *State
func (*State) PrintConfig ¶
func (*State) PrintVersion ¶
func (s *State) PrintVersion()
func (*State) RemoveFromState ¶
func (*State) SetAppName ¶
func (*State) SetBuildDate ¶
func (*State) SetCommitSha ¶
func (*State) SetConfigFileName ¶
func (*State) SetLogging ¶
func (*State) SetState ¶
func (s *State) SetState(newState ApplicationState) *State
func (*State) SetTempDir ¶
func (*State) SetVersion ¶
func (*State) UpdateConfigProperty ¶
func (*State) UseHomeDir ¶
Click to show internal directories.
Click to hide internal directories.