Versions in this module Expand all Collapse all v0 v0.0.16 Nov 24, 2024 v0.0.13 Dec 11, 2023 Changes in this version + var DEFAULT_IGNORE_FILE = ".gitignore" + var Debug bool + var OutputFormat = argtype.NewStringSet("OutputFormat", "text", []string{ ... }) + func AddCommon(rootCmd *cobra.Command) + func EncodeJSON(data interface{}) string + func ErrString(maybeErr error) any + func IfThenElse(condition bool, a interface{}, b interface{}) interface + func MakeFileCommand(checkFn func(*FileContext)) func(cmd *cobra.Command, args []string) error + func ProgressCount() + func ProgressEnd() + func ProgressStart(fcs []FileContext) + func ProgressUpdate(good int, bad int, fc FileContext) + type ErrorAtPosition struct + Err error + Position int + func NewErrorAtPosition(err error, pos int) *ErrorAtPosition + func (eap *ErrorAtPosition) Error() string + type FileContext struct + FilePath string + func (fc *FileContext) IsDir() bool + func (fc *FileContext) IsFile() bool + func (fc *FileContext) ReadFile() ([]byte, error) + func (fc *FileContext) RecordResult(Code string, Success bool, Detail map[string]interface{}) + func (fc *FileContext) Reset() + func (fc *FileContext) Size() int64 + func (fc *FileContext) Stat() (os.FileInfo, error) + func (fc *FileContext) Success() bool + type Globber struct + func (g *Globber) Set(newValue string) error + func (g *Globber) String() string + func (g *Globber) Type() string + type Namespaces struct + Additional map[string]string + Default string + func GetNamespaces(reader io.Reader) (Namespaces, error) + type SchemaOptions struct + func (so *SchemaOptions) AddFlags(theCmd *cobra.Command) + func (so *SchemaOptions) Prepare() error + func (so *SchemaOptions) Validate(data interface{}) error + type TestResult struct + Code string + Detail map[string]interface{} + Success bool