cmd

package
v0.0.0-...-a2eecc6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = []cli.Command{
	{
		Name:    "sync",
		Aliases: []string{"s"},
		Usage:   "sync git repositories",
		Flags:   SyncFlags,
		Action:  Sync,
	},
}
View Source
var Flags = []cli.Flag{
	cli.BoolFlag{
		EnvVar:      "GMIRROR_DEBUG",
		Name:        "debug, d",
		Usage:       "running gmirror in debug mode",
		Destination: &setting.DebugMode,
	},
}
View Source
var SyncFlags = []cli.Flag{
	cli.BoolFlag{
		EnvVar: "GMIRROR_DEBUG",
		Name:   "debug, d",
		Usage:  "running gmirror in debug mode",
	},
	cli.StringFlag{
		Name: "origin, o",

		Usage:       "origin repo",
		Destination: &origin,
	},
	cli.StringFlag{
		Name: "target, t",

		Usage:       "target repo",
		Destination: &target,
	},
	cli.StringFlag{
		EnvVar:      "GMIRROR_TOKEN",
		Name:        "token, k",
		Usage:       "token or password",
		Destination: &token,
	},
	cli.StringFlag{
		EnvVar:      "GMIRROR_USERNAME",
		Name:        "username, u",
		Usage:       "username",
		Destination: &username,
	},
}

Functions

func Before

func Before(c *cli.Context) error

func Sync

func Sync(ctx *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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