flagparser

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableParsing = false

DisableParsing disables parsing when running unit tests, as parsing is called in the test's init() function, which results in an error

Functions

This section is empty.

Types

type MainFlags

type MainFlags struct {
	ConfigPath         string
	ConfigDir          string
	DataDir            string
	DatabaseUrl        string
	DeploymentPassword string
	ShowVersion        bool
	Reconfigure        bool
	CreateSsl          bool
	IsConfigPathSet    bool
	IsConfigDirSet     bool
	IsDataDirSet       bool
	IsPortSet          bool
	IsDatabaseUrlSet   bool
	DisableCorsCheck   bool
	InstallService     bool
	UninstallService   bool
	Port               int
	Migration          MigrateFlags
}

MainFlags holds info for the parsed program arguments

func ParseFlags

func ParseFlags() MainFlags

ParseFlags reads the passed program arguments

type MigrateFlags added in v1.9.0

type MigrateFlags struct {
	DoMigration bool
	Source      string
	Destination string
}

MigrateFlags contains flags passed if migration is requested

Jump to

Keyboard shortcuts

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