add

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(deps Dependencies, args Args) []effects.Effect

Run assign a co-author to an alias

Types

type Args

type Args struct {
	Alias    *string
	Coauthor *string
}

Args the arguments of the Runner

type Definition

type Definition struct {
	Command *kingpin.CmdClause
	Args    Args
	Deps    Dependencies
}

Definition the command, arguments, and dependencies

func New

func New(app *kingpin.Application) Definition

New the constructor for Definition

type Dependencies

type Dependencies struct {
	AddGitAlias func(string, string) error
}

Dependencies the dependencies of the Runner

Jump to

Keyboard shortcuts

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