cmds

package
v0.0.0-...-ab9d506 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllCommands

func AllCommands() ([]cli.Command, error)

AllCommands returns all the commands registered in the cmds module

Types

type BaseCommand

type BaseCommand struct {
	// contains filtered or unexported fields
}

BaseCommand provides several basic fields which are generally always needed in command implementations.

func NewBaseCommand

func NewBaseCommand() (*BaseCommand, error)

NewBaseCommand creates a new BaseCommand instance

type Command

type Command interface {
	// Command returns a cli.Command to register with the command line
	// interface router
	Command() cli.Command
}

Command wraps the Command() method. Which returns a cli.Command

type CreateCommand

type CreateCommand struct {
	*BaseCommand
}

CreateCommand implements Command for the create command. Which creates GitHub issues for the retrieved Jira issues..

func NewCreateCommand

func NewCreateCommand() (*CreateCommand, error)

NewCreateCommand creates a new CreateCommand instance. An error is returned if one occurs.

func (CreateCommand) Command

func (c CreateCommand) Command() cli.Command

Command implements Command.Command

func (CreateCommand) Execute

func (c CreateCommand) Execute(ctx *cli.Context) error

Execute runs when a command is invoked by the command line interface. An error will be returned if one occurs.

type FetchCommand

type FetchCommand struct {
	*BaseCommand
}

FetchCommand implements Command for the fetch command. Which retrieves and stores state from the Jira and GitHub APIs.

func NewFetchCommand

func NewFetchCommand() (*FetchCommand, error)

NewFetchCommand makes a new FetchCommand instance. An error is returned if one occurs.

func (FetchCommand) Command

func (c FetchCommand) Command() cli.Command

Command implements Command.Command

func (FetchCommand) Execute

func (c FetchCommand) Execute(ctx *cli.Context) error

Execute runs when a command is invoked by the command line interface. An error will be returned if one occurs.

type LinkCommand

type LinkCommand struct {
	*BaseCommand
}

LinkCommand implements Command for the link command. Which creates a relationship between a Jira and GitHub API entity.

func NewLinkCommand

func NewLinkCommand() (*LinkCommand, error)

NewLinkCommand creates a new LinkCommand instance. An error is returned if one occurs.

func (LinkCommand) Command

func (c LinkCommand) Command() cli.Command

Command implements Command.Command

func (LinkCommand) Execute

func (c LinkCommand) Execute(ctx *cli.Context) error

Execute runs when a command is invoked by the command line interface. An error will be returned if one occurs.

Jump to

Keyboard shortcuts

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