Documentation ¶
Overview ¶
Package config implements configuration and start-up. This source parses the command-line and reads additional input configuration.
Package config implements configuration and start-up. This source configures mgit.
Index ¶
- func AddConfigCommands(commands map[string]repository.Command) map[string]repository.Command
- func GetCommands() map[string]repository.Command
- func GetFilterDefs() []repository.FilterDefinition
- func ParseCommandline(osArgs []string, filterDefs []repository.FilterDefinition) (command string, cmdInteractive bool, args []string, ...)
- func Usage(filters []repository.FilterDefinition, commands map[string]repository.Command) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigCommands ¶
func AddConfigCommands(commands map[string]repository.Command) map[string]repository.Command
AddConfigCommands add commands from the configuration files to the command list.
func GetCommands ¶
func GetCommands() map[string]repository.Command
getCommands fetches all commands available for this run.
func GetFilterDefs ¶
func GetFilterDefs() []repository.FilterDefinition
getFilters returns all filters.
func ParseCommandline ¶
func ParseCommandline(osArgs []string, filterDefs []repository.FilterDefinition) (command string, cmdInteractive bool, args []string, repositoryFilter repository.RepositoryFilter, ok bool)
ParseCommandline parses and validates the command-line and return useful structs to continue.
func Usage ¶
func Usage(filters []repository.FilterDefinition, commands map[string]repository.Command) string
Usage returns the usage for the program.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.