common

package
v0.0.0-...-7f57805 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Settings *environment.Settings
	Args     []*string
}

Command implements common command functions

func (*Command) AddArg

func (c *Command) AddArg(arg *string)

AddArg makes the command aware that it is expecting an argument The order that args are added is important

func (*Command) ParseArgs

func (c *Command) ParseArgs() cobra.PositionalArgs

ParseArgs writes the arg values to the specified locations.

Jump to

Keyboard shortcuts

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