Help us shape the future of Go! Take the 2026 Go Developer Survey

commands

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Run is the CLI entrypoint

Types

type CloneCommand

type CloneCommand struct {
	Meta
	WorkDirConfig
	Progress bool
	Args     []string
}

CloneCommand implements the cli.Command interface to clone a group

func (*CloneCommand) Help

func (h *CloneCommand) Help() string

Help ...

func (*CloneCommand) Run

func (h *CloneCommand) Run(args []string) int

Run ...

func (*CloneCommand) Synopsis

func (h *CloneCommand) Synopsis() string

Synopsis ...

type Meta added in v0.0.5

type Meta struct {
	UI cli.BasicUi
}

Meta ...

func (*Meta) AskCredentials added in v0.0.5

func (m *Meta) AskCredentials() (string, string, error)

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

func (m *Meta) FatalError(v error)

FatalError outputs error in the UI and exits with exit code 1, noop if error is nil

func (*Meta) Fatalf added in v0.0.5

func (m *Meta) Fatalf(format string, v ...interface{})

Fatalf outputs message in the UI and exits with exit code 1

type PullCommand

type PullCommand struct {
	Meta
	WorkDirConfig
	WorkDir string
}

PullCommand implements the cli.Command interface to run git pull on every cloned project in group

func (*PullCommand) Help

func (h *PullCommand) Help() string

Help ...

func (*PullCommand) Run

func (h *PullCommand) Run(args []string) int

Run ...

func (*PullCommand) Synopsis

func (*PullCommand) Synopsis() string

Synopsis ...

type UpdateCommand

type UpdateCommand struct {
	Meta
}

UpdateCommand implements the cli.Command interface to self update git-group binary

func (*UpdateCommand) Help

func (h *UpdateCommand) Help() string

Help ...

func (*UpdateCommand) Run

func (*UpdateCommand) Run(args []string) int

Run ...

func (*UpdateCommand) Synopsis

func (*UpdateCommand) Synopsis() string

Synopsis ...

type WorkDirConfig

type WorkDirConfig struct {
	GroupURL   string
	Depth      int
	SampleSize int
	Recursive  bool
}

WorkDirConfig persists the options used to initially clone a group to re-use them for pull commands

Jump to

Keyboard shortcuts

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