config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INOX_APP_NAME = "inox"

	SHELL_STARTUP_SCRIPT_NAME = "startup" + inoxconsts.INOXLANG_FILE_EXTENSION
	STARTUP_SCRIPT_RELPATH    = INOX_APP_NAME + "/" + SHELL_STARTUP_SCRIPT_NAME
	STARTUP_SCRIPT_PERM       = 0o700

	DEFAULT_TRUSTED_RISK_SCORE = core.MEDIUM_RISK_SCORE_LEVEL - 1

	METRICS_PERF_ENV_VAR_NAME = "METRICS_PERF_BUCKET"
)
View Source
const (
	UNIX = true
	WASM = false
)

Variables

View Source
var (
	//go:embed default_startup.ix
	DEFAULT_STARTUP_SCRIPT_CODE string
	USER_HOME                   string

	METRICS_PERF_BUCKET_NAME       string
	METRICS_PERF_BUCKET_ACCESS_KEY string
	METRICS_PERF_BUCKET_ENDPOINT   core.Host
	METRICS_PERF_BUCKET_SECRET_KEY *core.Secret
	METRICS_PERF_BUCKET_PROVIDER   string

	FORCE_COLOR           bool
	TRUECOLOR_COLORTERM   bool
	TERM_256COLOR_CAPABLE bool
	NO_COLOR              bool
	SHOULD_COLORIZE       bool

	// set if SHOULD_COLORIZE
	INITIAL_COLORS_SET bool
	INITIAL_FG_COLOR   core.Color
	INITIAL_BG_COLOR   core.Color

	DEFAULT_LOG_PRINT_CONFIG = &core.PrettyPrintConfig{
		PrettyPrintConfig: pprint.PrettyPrintConfig{
			MaxDepth: 10,
			Colorize: false,
			Compact:  true,
		},
	}

	STR_CONVERSION_PRETTY_PRINT_CONFIG = &core.PrettyPrintConfig{
		PrettyPrintConfig: pprint.PrettyPrintConfig{
			MaxDepth: 10,
			Colorize: false,
			Compact:  true,
		},
	}

	DEFAULT_PRETTY_PRINT_CONFIG *core.PrettyPrintConfig
)

Functions

func GetStartupScriptPath

func GetStartupScriptPath() (string, error)

GetStartupScriptPath searches for the startup script, creates if if it does not exist and returns its path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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