subcommands

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package subcommands provides modularized subcommands for giticket's CLI interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListSubcommand

func ListSubcommand() []string

ListSubcommand returns a list of strings which are the names of the available actions in registrySubcommands.

func Use

func Use(subcommand_name string) subcommand.SubcommandInterface

Use the action with the given name by returning it

Types

type SubcommandComment

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

A SubcommandComment implements SubcommandInterface, extending it to include attributes specific to the comment subcommand

func (*SubcommandComment) DebugFlag

func (subcommand *SubcommandComment) DebugFlag() bool

func (*SubcommandComment) Execute

func (subcommand *SubcommandComment) Execute()

Execute is used to add a comment when the comment subcommand is used from the CLI

func (*SubcommandComment) Help

func (subcommand *SubcommandComment) Help()

Help prints information for the comment subcommand, it is called from CLI Exec() if the user uses the --help flag with the comment subcommand

func (*SubcommandComment) InitFlags

func (subcommand *SubcommandComment) InitFlags(args []string) error

InitFlags sets up flags the command subcommand, parses flags, and returns any errors.

func (*SubcommandComment) Parameters

func (subcommand *SubcommandComment) Parameters() map[string]interface{}

type SubcommandCreate

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

SubcommandCreate implements the SubcommandInterface and extends it with attributes specific to the create subcommand

func (*SubcommandCreate) DebugFlag

func (subcommand *SubcommandCreate) DebugFlag() bool

func (*SubcommandCreate) Execute

func (subcommand *SubcommandCreate) Execute()

Execute creates a new ticket when the user uses the create subcommand

func (*SubcommandCreate) Help

func (subcommand *SubcommandCreate) Help()

Help prints help information for the create subcommand

func (*SubcommandCreate) InitFlags

func (subcommand *SubcommandCreate) InitFlags(args []string) error

InitFlags sets up the flags for the create subcommand, parses flags, and returns any errors

func (*SubcommandCreate) Parameters

func (subcommand *SubcommandCreate) Parameters() map[string]interface{}

type SubcommandDelete

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

SubcommandDelete implements SubcommandInterface and extends it with attributes common to the delete subcommand

func (*SubcommandDelete) DebugFlag

func (subcommand *SubcommandDelete) DebugFlag() bool

func (*SubcommandDelete) Execute

func (subcommand *SubcommandDelete) Execute()

Execute is used to delete a ticket when the user uses the delete subcommand from the CLI

func (*SubcommandDelete) Help

func (subcommand *SubcommandDelete) Help()

Help prints help information for the delete subcommand

func (*SubcommandDelete) InitFlags

func (subcommand *SubcommandDelete) InitFlags(args []string) error

InitFlags sets up the flags for the delete subcommand, parses flags, and returns any errors

func (*SubcommandDelete) Parameters

func (subcommand *SubcommandDelete) Parameters() map[string]interface{}

type SubcommandFilter added in v0.3.0

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

func (*SubcommandFilter) DebugFlag added in v0.3.0

func (subcommand *SubcommandFilter) DebugFlag() bool

func (*SubcommandFilter) Execute added in v0.3.0

func (subcommand *SubcommandFilter) Execute()

func (*SubcommandFilter) Help added in v0.3.0

func (subcommand *SubcommandFilter) Help()

func (*SubcommandFilter) InitFlags added in v0.3.0

func (subcommand *SubcommandFilter) InitFlags(args []string) error

func (*SubcommandFilter) Parameters added in v0.3.0

func (subcommand *SubcommandFilter) Parameters() map[string]interface{}

type SubcommandInit

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

SubcommandInit implements SubcommandInterface and extends it with attributes common to the init subcommand

func (*SubcommandInit) DebugFlag

func (subcommand *SubcommandInit) DebugFlag() bool

func (*SubcommandInit) Execute

func (subcommand *SubcommandInit) Execute()

Execute creates a new branch called 'giticket' and creates an initial commit when the init subcommand is called from the CLI

func (*SubcommandInit) Help

func (subcommand *SubcommandInit) Help()

Help prints help information for the init subcommand

func (*SubcommandInit) InitFlags

func (subcommand *SubcommandInit) InitFlags(args []string) error

InitFlags initializes the flags for the init subcommand, parses flags, and returns any errors

func (*SubcommandInit) Parameters

func (subcommand *SubcommandInit) Parameters() map[string]interface{}

type SubcommandLabel

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

SubcommandLabel implements SubcommandInterface and extends it with attributes specific to the label subcommand

func (*SubcommandLabel) DebugFlag

func (subcommand *SubcommandLabel) DebugFlag() bool

DebugFlag

func (*SubcommandLabel) Execute

func (subcommand *SubcommandLabel) Execute()

Execute is used to add a label when the label subcommand is used from the CLI

func (*SubcommandLabel) Help

func (subcommand *SubcommandLabel) Help()

Help prints help information for the label subcommand

func (*SubcommandLabel) InitFlags

func (subcommand *SubcommandLabel) InitFlags(args []string) error

InitFlags sets up the flags specific to the label subcommand, parses the flags, and returns any errors

func (*SubcommandLabel) Parameters

func (subcommand *SubcommandLabel) Parameters() map[string]interface{}

Parameters

type SubcommandList

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

SubcommandList implements SubcommandInterface and extends it with attributes common to the list subcommand

func (*SubcommandList) DebugFlag

func (subcommand *SubcommandList) DebugFlag() bool

DebugFlag

func (*SubcommandList) Execute

func (subcommand *SubcommandList) Execute()

Execute is used to list tickets when the user uses the list subcommand from the CLI

func (*SubcommandList) Help

func (subcommand *SubcommandList) Help()

Help prints help information for the list subcommand

func (*SubcommandList) InitFlags

func (subcommand *SubcommandList) InitFlags(args []string) error

InitFlags sets up the flags for the list subcommand, parses flags, and returns any errors

func (*SubcommandList) Parameters

func (subcommand *SubcommandList) Parameters() map[string]interface{}

Parameters

type SubcommandPriority

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

SubcommandPriority implements SubcommandInterface and extends it with attributes common to the priority subcommand

func (*SubcommandPriority) DebugFlag

func (subcommand *SubcommandPriority) DebugFlag() bool

DebugFlag()

func (*SubcommandPriority) Execute

func (subcommand *SubcommandPriority) Execute()

Execute executes the priority subcommand when the priority subcommand is used from the CLI

func (*SubcommandPriority) Help

func (subcommand *SubcommandPriority) Help()

Help prints help information for the priority subcommand

func (*SubcommandPriority) InitFlags

func (subcommand *SubcommandPriority) InitFlags(args []string) error

InitFlags sets up the flags for the priority subcommand, parses flags, and returns any errors

func (*SubcommandPriority) Parameters

func (subcommand *SubcommandPriority) Parameters() map[string]interface{}

Parameters

type SubcommandSeverity

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

SubcommandSeverity implements SubcommandInterface and extends it with attributes common to the severity subcommand

func (*SubcommandSeverity) DebugFlag

func (subcommand *SubcommandSeverity) DebugFlag() bool

DebugFlag

func (*SubcommandSeverity) Execute

func (subcommand *SubcommandSeverity) Execute()

Execute sets the severity for the ticket when the severity subcommand is used from the CLI

func (*SubcommandSeverity) Help

func (subcommand *SubcommandSeverity) Help()

Help prints help information for the severity subcommand

func (*SubcommandSeverity) InitFlags

func (subcommand *SubcommandSeverity) InitFlags(args []string) error

InitFlags sets up the flags for the severity subcommand, parses flags, and returns any errors

func (*SubcommandSeverity) Parameters

func (subcommand *SubcommandSeverity) Parameters() map[string]interface{}

Parameters

type SubcommandShow

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

SubcommandShow implements SubcommandInterface and extends it with attributes common to the show subcommand

func (*SubcommandShow) DebugFlag

func (subcommand *SubcommandShow) DebugFlag() bool

DebugFlag()

func (*SubcommandShow) Execute

func (subcommand *SubcommandShow) Execute()

Execute is used to show a ticket when the user uses the show subcommand from the CLI

func (*SubcommandShow) Help

func (subcommand *SubcommandShow) Help()

Help prints help information for the show subcommand

func (*SubcommandShow) InitFlags

func (subcommand *SubcommandShow) InitFlags(args []string) error

InitFlags is used to initialize the flags for the show subcommand, parse them, and return any errors

func (*SubcommandShow) Parameters

func (subcommand *SubcommandShow) Parameters() map[string]interface{}

Parameters()

type SubcommandStatus

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

SubcommandStatus implements SubcommandInterface and extends it with attributes common to the status subcommand

func (*SubcommandStatus) DebugFlag

func (subcommand *SubcommandStatus) DebugFlag() bool

DebugFlag

func (*SubcommandStatus) Execute

func (subcommand *SubcommandStatus) Execute()

Execute is used to set the status of a ticket when the status subcommand is used from the CLI

func (*SubcommandStatus) Help

func (subcommand *SubcommandStatus) Help()

Help prints help information for the status subcommand

func (*SubcommandStatus) InitFlags

func (subcommand *SubcommandStatus) InitFlags(args []string) error

InitFlags sets up the flags for the status subcommand, parses flags, and returns any errors

func (*SubcommandStatus) Parameters

func (subcommand *SubcommandStatus) Parameters() map[string]interface{}

Parameters

Jump to

Keyboard shortcuts

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