Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigFile = kingpin.Flag("configFile", "Configuration File").Short('c').String() // TODO make it mandatory or have a sane default Verbose = kingpin.Flag("verbose", "Verbose mode.").Short('v').Bool() )
Functions ¶
func GetVerboseLoggingFlag ¶
func GetVerboseLoggingFlag() bool
Types ¶
type Config ¶
type Config struct { ProjectDir string ProjectName string ScoDir string ScoConfigFile string VerboseOutput bool Logger *log_.Logger GitIgnore *gitignore.GitIgnore // TODO rename into something git agnostiv like FileIgnore ScoDirPermissions os.FileMode }
func New ¶
func New(globalConfig *GlobalConfig, projectDefinition *ProjectConfig, logger *log_.Logger) *Config
type GlobalConfig ¶
type GlobalConfig struct { Projects []ProjectConfig `json:"projects"` IgnorePatterns []string `json:"ignorePatterns"` }
func ParseGlobalConfig ¶
func ParseGlobalConfig(configFile string) *GlobalConfig
Click to show internal directories.
Click to hide internal directories.