Documentation ¶
Index ¶
- Variables
- func CheckRequiredArguments(requiredArguments []string, arguments map[string]string)
- func Clone(url string, targetDir string, _refName string, _progress bool) (r *git.Repository)
- func ParseArguments() map[string]string
- func Pull(targetDir string, _refName string, _progress bool) (err error)
- func ReadFile(path string) []byte
- type DependencyConfig
- type ProductConfig
Constants ¶
This section is empty.
Variables ¶
Catchy : bold and cyan text
View Source
var DevelopCommands = map[string]string{
"init": "Initializes development environment for the given configuration file.",
"update": "Updates development environment by pulling all dependencies for config",
}
DevelopCommands : commands which target development environments
Error : bold and red text
Notice : bold and blue text
View Source
var RootCommands = map[string]string{
"develop": "Run a command which targets development environments (such as init or update)",
}
RootCommands : all available root commands
View Source
var Warning = color.New(color.FgYellow).PrintfFunc()
Warning : yellow text
Functions ¶
func CheckRequiredArguments ¶
CheckRequiredArguments : checks whether all arguments in requiredArguments are available in arguments map and prints errors for missing arguments
func ParseArguments ¶
ParseArguments : parses command line flags
Types ¶
type DependencyConfig ¶
DependencyConfig : config for dependency
type ProductConfig ¶
type ProductConfig struct { Name string Version string Description string Dependencies map[string]*DependencyConfig }
ProductConfig : config for product
func GetProductConfig ¶
func GetProductConfig(configFile string) ProductConfig
GetProductConfig : receives a bytestring and returns a ProductConfig
Source Files ¶
Click to show internal directories.
Click to hide internal directories.