Documentation ¶
Overview ¶
Package flags implements common flags used across multiple commands and backends.
Index ¶
Constants ¶
View Source
const ( // CfgDebugDontBlameOasis is the flag used to opt-in to unsafe/debug/test // behavior. CfgDebugDontBlameOasis = "debug.dont_blame_oasis" // CfgDebugTestEntity is the command line flag to enable the debug test // entity. CfgDebugTestEntity = "debug.test_entity" // CfgGenesisFile is the flag used to specify a genesis file. CfgGenesisFile = "genesis.file" // CfgDryRun is the flag used to specify a dry-run of an operation. CfgDryRun = "dry_run" // CfgAssumeYes is the flag used to denote to answer all user prompts with // yes. CfgAssumeYes = "assume_yes" )
Variables ¶
View Source
var ( // VerboseFlags has the verbose flag. VerboseFlags = flag.NewFlagSet("", flag.ContinueOnError) // ForceFlags has the force flag. ForceFlags = flag.NewFlagSet("", flag.ContinueOnError) // DebugTestEntityFlags has the test entity enable flag. DebugTestEntityFlags = flag.NewFlagSet("", flag.ContinueOnError) // GenesisFileFlags has the genesis file flag. GenesisFileFlags = flag.NewFlagSet("", flag.ContinueOnError) // DebugDontBlameOasisFlag has the "don't blame oasis" flag. DebugDontBlameOasisFlag = flag.NewFlagSet("", flag.ContinueOnError) // DryRunFlag has the dry-run flag. DryRunFlag = flag.NewFlagSet("", flag.ContinueOnError) // AssumeYesFlag has the assume yes flag. AssumeYesFlag = flag.NewFlagSet("", flag.ContinueOnError) )
Functions ¶
func DebugAllowRoot ¶ added in v0.2201.0
func DebugAllowRoot() bool
DebugAllowRoot returns true iff the root account enable flag is set.
func DebugDontBlameOasis ¶
func DebugDontBlameOasis() bool
DebugDontBlameOasis returns true iff the "don't blame oasis" flag is set.
func DebugTestEntity ¶
func DebugTestEntity() bool
DebugTestEntity returns true iff the test entity enable flag is set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.