commands

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandWithFlags

type CommandWithFlags struct {
	Commands       []string
	Flags          map[string][]string
	PositionalArgs []string
	AuthRequired   bool
}

CommandWithFlags is a representation of a command with subcommands that takes a combination of flags, some of which have arguments and some of which don't. It also takes positional parameters, which are inserted after the subcommands and flags when serialized.

func (*CommandWithFlags) ToCommand

func (c *CommandWithFlags) ToCommand() []string

ToCommand produces a list of arguments given a representation of a command with flags.

Jump to

Keyboard shortcuts

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