flags

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_PREFIX = "SYNCTV_"
)

Variables

View Source
var (
	// Global
	EnvNoPrefix bool
	SkipEnvFlag bool
	Global      GlobalFlags

	// Server
	Server ServerFlags
)

Functions

This section is empty.

Types

type GlobalFlags added in v0.6.1

type GlobalFlags struct {
	Dev              bool   `env:"DEV"`
	LogStd           bool   `env:"LOG_STD"`
	GitHubBaseURL    string `env:"GITHUB_BASE_URL"`
	DataDir          string `env:"DATA_DIR"`
	ForceAutoMigrate bool   `env:"FORCE_AUTO_MIGRATE"`
}

type ServerFlags added in v0.6.1

type ServerFlags struct {
	SkipConfig         bool   `env:"SKIP_CONFIG"`
	SkipEnvConfig      bool   `env:"SKIP_ENV_CONFIG"`
	DisableUpdateCheck bool   `env:"DISABLE_UPDATE_CHECK"`
	DisableWeb         bool   `env:"DISABLE_WEB"`
	WebPath            string `env:"WEB_PATH"`
	DisableLogColor    bool   `env:"DISABLE_LOG_COLOR"`
}

Jump to

Keyboard shortcuts

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