subcommand

package
v0.0.0-...-6bf8785 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCommand

type BaseCommand struct {
	Args []string
}

func (BaseCommand) Arguments

func (cmd BaseCommand) Arguments() []string

func (BaseCommand) HasQuery

func (cmd BaseCommand) HasQuery() bool

func (BaseCommand) HasQueryWithOffset

func (cmd BaseCommand) HasQueryWithOffset(offset int) bool

func (BaseCommand) Query

func (cmd BaseCommand) Query() string

func (BaseCommand) QueryWithOffset

func (cmd BaseCommand) QueryWithOffset(offset int) string

type HelpCommand

type HelpCommand struct {
	BaseCommand
}

HelpCommand describe a subcommand to show the subcommands.

func NewHelpCommand

func NewHelpCommand(args []string) HelpCommand

NewHelpCommand return an instance of this subcommand.

func (HelpCommand) Run

func (cmd HelpCommand) Run(_ctx context.Context, wf *aw.Workflow)

type SubCommand

type SubCommand interface {
	// Run the subcommand
	Run(ctx context.Context, wf *aw.Workflow)

	// Get the arguments
	Arguments() []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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