Documentation
¶
Index ¶
- Constants
- Variables
- func ContainsConfigFile(configDir string, recursive bool) bool
- func GetGlobalConfigDir() (string, error)
- func MergeCliConfigIfExists(configDir string)
- func SetCliConfig(logLevel string)
- func ValidateConfigExists(configDir string, scaffoldMissing bool) error
- func WriteLocalConfigValue(configDir string, key string, value string) error
- type CliConfig
- type ConfigPair
Constants ¶
View Source
const DevCliVersion = "dev"
View Source
const GlobalConfigFileName = "config"
The GlobalConfigFileName is the file name without the file extension.
View Source
const LocalDirConfigFileName = ".imposter"
The LocalDirConfigFileName is the file name without the file extension.
Variables ¶
View Source
var ( Config CliConfig DirPath string )
Functions ¶
func ContainsConfigFile ¶
ContainsConfigFile determines if the specified configDir contains a file match the expected naming format
func GetGlobalConfigDir ¶
func MergeCliConfigIfExists ¶
func MergeCliConfigIfExists(configDir string)
func SetCliConfig ¶
func SetCliConfig(logLevel string)
func ValidateConfigExists ¶
Types ¶
type ConfigPair ¶
func ParseConfig ¶
func ParseConfig(args []string) []ConfigPair
Click to show internal directories.
Click to hide internal directories.