cmd

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MergeCmd = &cobra.Command{
	Use:   "merge",
	Short: "Merge pull requests.",
	Long:  "Merge pull requests with a specified branch name in an organization and with specified conditions.",
	Args:  cobra.NoArgs,
	RunE:  merge,
}

MergeCmd merges pull requests

View Source
var RootCmd = &cobra.Command{
	Use:               "multi-gitter",
	Short:             "Multi gitter is a tool for making changes into multiple git repositories",
	PersistentPreRunE: persistentPreRun,
}

RootCmd is the root command containing all subcommands

View Source
var RunCmd = &cobra.Command{
	Use:   "run [script path]",
	Short: "Clones multiple repostories, run a script in that directory, and creates a PR with those changes.",
	Long:  runHelp,
	Args:  cobra.ExactArgs(1),
	RunE:  run,
}

RunCmd is the main command that runs a script for multiple repositories and creates PRs with the changes made

View Source
var StatusCmd = &cobra.Command{
	Use:   "status",
	Short: "Get the status of pull requests.",
	Long:  "Get the status of all pull requests with a specified branch name in an organization.",
	Args:  cobra.NoArgs,
	RunE:  status,
}

StatusCmd gets statuses of pull requests

View Source
var Version string

Version is the current version of multigitter (set by main.go)

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Get the version of multi-gitter.",
	Long:  "Get the version of multi-gitter.",
	Args:  cobra.NoArgs,
	Run:   version,
}

VersionCmd prints the version of multi-gitter

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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