commands

package
v0.0.0-...-413351d Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package commands contains the assorted sub commands supported by the git-review tool.

Index

Constants

This section is empty.

Variables

View Source
var CommandMap = map[string]*Command{
	"abandon": abandonCmd,
	"accept":  acceptCmd,
	"comment": commentCmd,
	"list":    listCmd,
	"pull":    pullCmd,
	"push":    pushCmd,
	"rebase":  rebaseCmd,
	"reject":  rejectCmd,
	"request": requestCmd,
	"show":    showCmd,
	"submit":  submitCmd,
	"web":     webCmd,
}

CommandMap defines all of the available (sub)commands.

Functions

This section is empty.

Types

type Command

type Command struct {
	Usage     func(string)
	RunMethod func(repository.Repo, []string) error
}

Command represents the definition of a single command.

func (*Command) Run

func (cmd *Command) Run(repo repository.Repo, args []string) error

Run executes a command, given its arguments.

The args parameter is all of the command line args that followed the subcommand.

Directories

Path Synopsis
Package output contains helper methods for pretty-printing code reviews.
Package output contains helper methods for pretty-printing code reviews.

Jump to

Keyboard shortcuts

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