Versions in this module Expand all Collapse all v1 v1.4.0 Feb 24, 2024 Changes in this version + const MegaByte + func BackToAppDir() error + func BackToDir(back int) (dir string, err error) + func IsRunTest() bool + func PrepareEnv(size int) + func PrepareFlags() + func SetupConfig(options any) + func SetupLog() + func Verbose() bool + type AppConfig struct + Name string + Version string + func GetAppSettings() *AppConfig + type ArgList struct + Convert func(string) string + func NewArgList(conv func(string) string) *ArgList + func ReadArgs(uniq bool, conv func(string) string) *ArgList + func (t *ArgList) Add(args []string, uniq bool) int + func (t *ArgList) Count(arg string) int + func (t *ArgList) Has(arg string) bool + func (t *ArgList) Size() int + type LogConfig struct + LogDir string + LogFile string + LogLevel string + func GetLogSettings() *LogConfig + type RootConfig struct + App *AppConfig + Debug bool + Log *LogConfig + Remain hcl.Body + func GetTheSettings() *RootConfig + func ParseConfigFile(options any) (*RootConfig, error) + func ReadConfigFile(cfgFile string, verbose bool, others any) (*RootConfig, error)