subsystem

package
v0.5.1-beta-hotfix1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NBLCommands map[string]*NBLcommand

Functions

func ConfArgs

func ConfArgs(fflag *flag.FlagSet, arguments []string) error

func PrepareCmd

func PrepareCmd(cmd *NBLcommand) error

func PrintDefaults

func PrintDefaults(f *flag.FlagSet)

func Run

func Run(sc string) (int, error)

Types

type NBLcommand

type NBLcommand struct {
	UpgradeTerm   bool
	WelcomeMsg    bool
	InitProviders bool
	Help          string
	Sec           SCType
	//
	Call func(*NBLcommand) (int, error)

	Stdin  io.ReadCloser
	Stdout io.WriteCloser
	// contains filtered or unexported fields
}

func (*NBLcommand) CommandLine

func (n *NBLcommand) CommandLine() *flag.FlagSet

func (*NBLcommand) Run

func (n *NBLcommand) Run(cmdline *flag.FlagSet) (int, error)

type SCType

type SCType int
const (
	SecMain SCType = iota
	SecRuntime
	SecHidden
)

Jump to

Keyboard shortcuts

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