Documentation
¶
Index ¶
- func CastList[To any, From any](list []From) ([]To, bool)
- func CastMapMember[To any](m map[string]interface{}, k string) (*To, bool)
- func CastStringMap[To any, From any](m map[string]From) (map[string]To, bool)
- func InitLogger() error
- func InitLoggerWithConfig(config *LogConfig) error
- func InitViper(appName string, rootCmd *cobra.Command) error
- type CommandLocations
- type EmbeddedCommandLocation
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastMapMember ¶ added in v0.0.4
func CastStringMap ¶ added in v0.0.4
func InitLogger ¶
func InitLogger() error
func InitLoggerWithConfig ¶
Types ¶
type CommandLocations ¶
type CommandLocations struct {
Embedded []EmbeddedCommandLocation
Repositories []string
}
func (*CommandLocations) LoadCommands ¶
func (c *CommandLocations) LoadCommands( loader glazed_cmds.FSCommandLoader, helpSystem *help.HelpSystem, rootCmd *cobra.Command, ) ([]glazed_cmds.Command, []*glazed_cmds.CommandAlias, error)
type EmbeddedCommandLocation ¶
Click to show internal directories.
Click to hide internal directories.