config

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2014 License: MIT Imports: 15 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL