Documentation
¶
Index ¶
- func FileExists(path string) bool
- func LoadDotEnv(path file.File) error
- func LoadTools(path file.File, log *logger.Logger) (tools.Tools, error)
- func Print(format string, cfg ...any)
- func PrintYAMLBytes(yamlBytes []byte) any
- func SplitTags(tags []string) ([]string, []string)
- func ValidateInput(toolsPath *string, args []string) error
- type DefaultEnvironmentLoader
- type DefaultFileChecker
- type DefaultInputValidator
- type DefaultTagSplitter
- type DefaultToolsLoader
- type DefaultYAMLParser
- type EnvironmentLoader
- type FileChecker
- type InputValidator
- type TagSplitter
- type ToolsLoader
- type YAMLParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists checks if a file exists at the given path.
func LoadDotEnv ¶
LoadDotEnv loads environment variables from a .env file.
func PrintYAMLBytes ¶
PrintYAMLBytes parses YAML bytes into a generic data structure.
func ValidateInput ¶
ValidateInput validates the command-line arguments.
Types ¶
type DefaultEnvironmentLoader ¶
type DefaultEnvironmentLoader struct{}
DefaultEnvironmentLoader is the default implementation of EnvironmentLoader.
func (*DefaultEnvironmentLoader) LoadFromDotEnv ¶
func (l *DefaultEnvironmentLoader) LoadFromDotEnv(path string) error
LoadFromDotEnv loads environment variables from a .env file.
type DefaultFileChecker ¶
type DefaultFileChecker struct{}
DefaultFileChecker is the default implementation of FileChecker.
func (*DefaultFileChecker) Exists ¶
func (c *DefaultFileChecker) Exists(path string) bool
Exists checks if a file exists at the given path.
type DefaultInputValidator ¶
type DefaultInputValidator struct{}
DefaultInputValidator is the default implementation of InputValidator.
func (*DefaultInputValidator) ValidateInput ¶
func (v *DefaultInputValidator) ValidateInput(toolsPath *string, args []string) error
ValidateInput validates the command-line arguments.
type DefaultTagSplitter ¶
type DefaultTagSplitter struct{}
DefaultTagSplitter is the default implementation of TagSplitter.
type DefaultToolsLoader ¶
type DefaultToolsLoader struct{}
DefaultToolsLoader is the default implementation of ToolsLoader.
type DefaultYAMLParser ¶
type DefaultYAMLParser struct{}
DefaultYAMLParser is the default implementation of YAMLParser.
func (*DefaultYAMLParser) ParseBytes ¶
func (p *DefaultYAMLParser) ParseBytes(yamlBytes []byte) any
ParseBytes parses YAML bytes into a generic data structure.
type EnvironmentLoader ¶
EnvironmentLoader loads environment variables from various sources.
type FileChecker ¶
FileChecker checks if a file exists.
type InputValidator ¶
InputValidator validates command-line arguments.
type TagSplitter ¶
TagSplitter splits tags into include and exclude lists.
type ToolsLoader ¶
ToolsLoader loads tools configuration from a file.
type YAMLParser ¶
YAMLParser parses YAML data.