conf

package
v0.0.0-...-893bc5d Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App     = kingpin.New("BUND", fmt.Sprintf("[ BUND ] Language that is Functional and Stack-based: %v", BVersion))
	Debug   = App.Flag("debug", "Enable debug mode.").Default("false").Bool()
	CDebug  = App.Flag("core-debug", "Enable core debug mode.").Default("false").Bool()
	Color   = App.Flag("color", "--color : Enable colors on terminal --no-color : Disable colors .").Default("true").Bool()
	VBanner = App.Flag("banner", "Display [ BUND ] banner .").Default("false").Bool()
	Args    = App.Flag("args", "String of arguments passed to a script").String()

	Version = App.Command("version", "Display information about [ BUND ]")
	VTable  = Version.Flag("table", "Display [ BUND ] inner information .").Default("true").Bool()

	Shell       = App.Command("shell", "Run [ BUND ] in interactive shell")
	ShowSResult = Shell.Flag("result", "Display result of expressions evaluated in [ BUND ] shell").Default("false").Short('r').Bool()
	SExpr       = Shell.Arg("expression", "[ BUND ] expression passed to shell.").String()

	Run         = App.Command("run", "Run BUND in non-interactive mode")
	Scripts     = Run.Arg("Scripts", "[ BUND ] code to load").Strings()
	ShowRResult = Run.Flag("result", "Display result of scripts execution as it returned by [ BUND ]").Default("false").Short('r').Bool()

	Eval        = App.Command("eval", "Evaluate a [ BUND ] expression")
	EStdin      = Eval.Flag("stdin", "Read [ BUND ] expression from STDIN .").Default("false").Bool()
	Expr        = Eval.Arg("expression", "[ BUND ] expression.").String()
	ShowEResult = Eval.Flag("result", "Display result of [ BUND ] expression evaluation").Default("false").Short('r').Bool()
)
View Source
var Argv [][]string
View Source
var BVersion = fmt.Sprintf("%v.%v(rel %v)", Major, Min, Rel)
View Source
var EVersion = fmt.Sprintf("%v.%v", Major, Min)
View Source
var Major = 1
View Source
var Min = 0
View Source
var Rel = 0

Functions

func FileList

func FileList(s kingpin.Settings) (target *[]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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