Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindConfig ¶ added in v0.0.7
FindConfig will return the first .gitgroup file that it finds going up the directory tree
Types ¶
type CloneCommand ¶
type CloneCommand struct { Meta WorkDirConfig ProgressBar MultiThread Progress bool Args []string }
CloneCommand implements the cli.Command interface to clone a group
type Meta ¶ added in v0.0.5
Meta ...
func (*Meta) AskCredentials ¶ added in v0.0.5
AskCredentials prompts for username and password
func (*Meta) Fatal ¶ added in v0.0.5
func (m *Meta) Fatal(v ...interface{})
Fatal outputs message in the UI and exits with exit code 1
func (*Meta) FatalError ¶ added in v0.0.5
FatalError outputs error in the UI and exits with exit code 1, noop if error is nil
type MultiThread ¶ added in v0.0.6
type MultiThread struct {
// contains filtered or unexported fields
}
MultiThread ...
func (*MultiThread) FeedWorkers ¶ added in v0.0.6
func (h *MultiThread) FeedWorkers(fn func())
FeedWorkers manages input channel, closes it after "fn" finishes and closes output channel after workers finish
func (*MultiThread) FlagSet ¶ added in v0.0.6
func (h *MultiThread) FlagSet() *flag.FlagSet
FlagSet adds MultiThread specific flags
func (*MultiThread) StartWorkers ¶ added in v0.0.6
func (h *MultiThread) StartWorkers(fn func())
StartWorkers initializes the waiting group and kicks the worker goroutines
type ProgressBar ¶ added in v0.0.6
type ProgressBar struct {
// contains filtered or unexported fields
}
ProgressBar ...
type PullCommand ¶
type PullCommand struct { Meta WorkDirConfig ProgressBar MultiThread Progress bool WorkDir string CloneNew bool }
PullCommand implements the cli.Command interface to run git pull on every cloned project in group
type UpdateCommand ¶
type UpdateCommand struct {
Meta
}
UpdateCommand implements the cli.Command interface to self update git-group binary
type WorkDirConfig ¶
type WorkDirConfig struct { GroupURL string Depth int SampleSize int `json:"SampleSize,omitempty"` Recursive bool }
WorkDirConfig persists the options used to initially clone a group to re-use them for pull commands
func (*WorkDirConfig) LoadConfig ¶ added in v0.0.7
func (h *WorkDirConfig) LoadConfig(currentDir string) (string, error)
LoadConfig loads group config from the "closest" .gitgroup
func (*WorkDirConfig) SaveConfig ¶ added in v0.0.7
func (h *WorkDirConfig) SaveConfig(groupDir string) error
SaveConfig saves current group config to .gitgroup