Documentation ¶
Index ¶
- Variables
- func Main(env command.Env) error
- func NewConfig(cliOpts CliOptions, yaml *config.YAML) (core.Config, error)
- func NewFormatterParams(config core.Config) formatter.Params
- func NewLogger(env command.Env) (*zap.Logger, error)
- func NewToolsParams(config core.Config, unpacker unpack.Unpacker, logger *zap.SugaredLogger) tools.Params
- func NewYaml(options CliOptions) (*config.YAML, error)
- type CliOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( checker.Module, formatter.Module, tools.Module, unpack.Module, fx.WithLogger(func() fxevent.Logger { return fxevent.NopLogger }), fx.Provide( NewCliOptions, NewConfig, NewYaml, NewFormatterParams, NewToolsParams, NewLogger, func(logger *zap.Logger) *zap.SugaredLogger { return logger.Sugar() }, command.NewCommand, ), fx.Invoke(func(cfg core.Config) { color.NoColor = !cfg.WithColors() }), )
Functions ¶
func NewToolsParams ¶
Types ¶
type CliOptions ¶
type CliOptions struct { InputFile string Format string OutputFile string ConfigFile string VendorDir string FailOnError bool NoColor *bool // Trace is not really used, but we generate flag for help entry // --trace is checked in NewLogger function, as CliOptions can't be provided // before Logger. Trace bool // contains filtered or unexported fields }
func NewCliOptions ¶
Click to show internal directories.
Click to hide internal directories.