Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlagCfg = &cli.StringFlag{ Name: "cfg", Usage: "set config file path", Required: true, HasBeenSet: true, Value: "easyp.yaml", Aliases: []string{"config"}, EnvVars: []string{"EASYP_CFG"}, } FlagDebug = &cli.BoolFlag{ Name: "debug", Usage: "set config file path", Required: false, HasBeenSet: false, Value: false, Aliases: []string{"d"}, EnvVars: []string{"DEBUG"}, } )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// LintConfig is the lint configuration.
Lint LintConfig `json:"lint" yaml:"lint" env:"EASYP_LINT"`
// Deps is the dependencies repositories
Deps []string `json:"deps" yaml:"deps" env:"EASYP_DEPS"`
}
Config is the configuration of easyp.
func ReadConfig ¶
type LintConfig ¶
type LintConfig struct {
Use []string `json:"use" yaml:"use" env:"USE"` // Use rules for linter.
EnumZeroValueSuffixPrefix string `json:"enumZeroValueSuffixPrefix" yaml:"enumZeroValueSuffixPrefix" env:"ENUM_ZERO_VALUE_SUFFIX_PREFIX"` // Enum zero value suffix prefix.
ServiceSuffixSuffix string `json:"serviceSuffixSuffix" yaml:"serviceSuffixSuffix" env:"SERVICE_SUFFIX_SUFFIX"` // Service suffix suffix.
Ignore []string `json:"ignore" yaml:"ignore" env:"IGNORE"` // Ignore dirs with proto file.
}
LintConfig contains linter configuration.
Click to show internal directories.
Click to hide internal directories.