command

package
v0.0.0-...-726277f Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrExec

func StrExec(str string) error

Types

type Cmd

type Cmd struct {
	Command string // the output command after forming
	// contains filtered or unexported fields
}

func New

func New(ctx *cli.Context, operation rune) Cmd

func (*Cmd) AddFlags

func (c *Cmd) AddFlags(flags ...string)

func (*Cmd) AddFlagsImplicit

func (c *Cmd) AddFlagsImplicit(flags ...string)

func (*Cmd) AddOptions

func (c *Cmd) AddOptions(options ...rune)

func (*Cmd) AddStringFlag

func (c *Cmd) AddStringFlag(flag string, value string)

func (*Cmd) Exec

func (c *Cmd) Exec()

func (*Cmd) ExecHandleErr

func (c *Cmd) ExecHandleErr() error

func (*Cmd) FormNoArgs

func (c *Cmd) FormNoArgs() string

func (*Cmd) FormWithArgs

func (c *Cmd) FormWithArgs() string

func (*Cmd) FormWithSubstitute

func (c *Cmd) FormWithSubstitute(substitution string) string

func (*Cmd) SetBinary

func (c *Cmd) SetBinary(bin string)

Jump to

Keyboard shortcuts

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