cmdline

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = Configuration{}

Functions

func PostCmd

func PostCmd(p *basic.Object, exec cmdExecuter, args []string) bool

func RegisteCmd

func RegisteCmd(cmdName string, executer cmdExecuter)

Types

type CmdArg

type CmdArg struct {
	Flag         string
	SimplifyFlag string
	Required     bool
}

type CmdArgParser

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

func NewCmdArgParser

func NewCmdArgParser(args []string) *CmdArgParser

func (*CmdArgParser) ExtraInt64Arg

func (this *CmdArgParser) ExtraInt64Arg(arg *CmdArg, val *int64)

func (*CmdArgParser) ExtraIntArg

func (this *CmdArgParser) ExtraIntArg(arg *CmdArg, val *int)

func (*CmdArgParser) ExtraStringArg

func (this *CmdArgParser) ExtraStringArg(arg *CmdArg, val *string)

type Configuration

type Configuration struct {
	SupportCmdLine bool
}

func (*Configuration) Close

func (c *Configuration) Close() error

func (*Configuration) Init

func (c *Configuration) Init() error

func (*Configuration) Name

func (c *Configuration) Name() string

Jump to

Keyboard shortcuts

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