flags

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package flags manages the launcher's flags. For any changes, you should check if they are consistent with locking.Restart().

Index

Constants

View Source
const (
	UninstallFlag        = "uninstall"
	DebugFlag            = "debug"
	SkipSelfUpdateFlag   = "skipselfupdate"
	NoStreamPassingFlag  = "nostreampassing"
	RoamingFlag          = "roaming"
	PrintBuildTimeFlag   = "build-time"
	DeploymentConfigFlag = "deployment-config"

	AcceptInstallFlag      = "accept-install"
	AcceptUninstallFlag    = "accept-uninstall"
	DismissGuiPromptsFlag  = "dismiss-gui-prompts"
	LogIndexCounterFlag    = "log-index"
	LogInstanceCounterFlag = "log-instance"
	ExtraEnvFlag           = "extra-env"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LauncherFlags added in v1.3.2

type LauncherFlags struct {
	Uninstall        bool
	Debug            bool
	SkipSelfUpdate   bool
	NoStreamPassing  bool
	Roaming          bool
	PrintBuildTime   bool
	DeploymentConfig string

	AcceptInstall      bool
	AcceptUninstall    bool
	DismissGuiPrompts  bool
	LogIndexCounter    int
	LogInstanceCounter int
	// Readonly field of passed environment variables
	ExtraEnvs map[string]string
	// contains filtered or unexported fields
}

func Setup

func Setup(args []string) (*LauncherFlags, error)

func (*LauncherFlags) GetTransmittingFlags added in v1.3.2

func (launcherFlags *LauncherFlags) GetTransmittingFlags() (transmittingFlags []string)

GetTransmittingFlags returns those flags which the launcher should hand to itself when restarting.

func (*LauncherFlags) SetNextLogIndex added in v1.3.2

func (launcherFlags *LauncherFlags) SetNextLogIndex(index int)

Jump to

Keyboard shortcuts

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