app_opt

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputNone      = "none"
	OutputText      = "text"
	OutputMarkdown  = "markdown"
	OutputJson      = "json"
	BudgetLow       = "low"
	BudgetNormal    = "normal"
	BudgetUnlimited = "unlimited"
	LangAuto        = "auto"
	LangEnglish     = "en"
	LangJapanese    = "ja"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonOpts

type CommonOpts struct {
	// Automatically open the artifact folder, after successful execution
	AutoOpen bool

	// Limit bandwidth to downloading/uploading contents
	BandwidthKb int

	// Set concurrency of worker execution
	Concurrency int

	// Enable debug mode
	Debug bool

	// Enable verbose mode
	Verbose bool

	// Enable experiments
	Experiment string

	// Language
	Lang mo_string.SelectString

	// Memory budget
	BudgetMemory mo_string.SelectString

	// Storage budget
	BudgetStorage mo_string.SelectString

	// Set output format
	Output mo_string.SelectString

	// Explicitly set proxy the hostname and the port number
	Proxy mo_string.OptionalString

	// Quiet mode
	Quiet bool

	// Do not store token in the file
	Secure bool

	// Extra parameters
	Extra mo_string.OptionalString

	// Specify workspace path
	Workspace mo_string.OptionalString
	// contains filtered or unexported fields
}

func Default

func Default() CommonOpts

func (*CommonOpts) ExtraLoad

func (z *CommonOpts) ExtraLoad() error

ExtraLoad Load extra opts

func (*CommonOpts) ExtraOpts

func (z *CommonOpts) ExtraOpts() ExtraOpts

func (*CommonOpts) Preset

func (z *CommonOpts) Preset()

type ExtraOpts

type ExtraOpts struct {
	AppKeys     map[string]string `json:"app_keys,omitempty"`
	Experiments []string          `json:"experiments,omitempty"`
}

func (ExtraOpts) AppKey

func (z ExtraOpts) AppKey(key string) (value string, found bool)

func (ExtraOpts) HasExperiment

func (z ExtraOpts) HasExperiment(key string) bool

Jump to

Keyboard shortcuts

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