flags

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Force = cli.BoolFlag{
	Name:  "f,force",
	Usage: "Force the overwrite of files without asking.",
}

Force is a cli.Flag used to overwrite files.

View Source
var Insecure = cli.BoolFlag{
	Name: "insecure",
}

Insecure is the flag required on insecure operations

View Source
var NoPassword = cli.BoolFlag{
	Name: "no-password",
	Usage: `Do not ask for a password to encrypt a private key. Sensitive key material will
be written to disk unencrypted. This is not recommended. Requires **--insecure** flag.`,
}

NoPassword is a cli.Flag used to avoid using a password to encrypt private keys.

View Source
var PasswordFile = cli.StringFlag{
	Name:  "password-file",
	Usage: `The path to the <file> containing the password to encrypt or decrypt the private key.`,
}

PasswordFile is a cli.Flag used to pass a file to encrypt or decrypt a private key.

View Source
var Subtle = cli.BoolFlag{
	Name: "subtle",
}

Subtle is the flag required for delicate operations.

Functions

func ParseTimeOrDuration added in v0.8.4

func ParseTimeOrDuration(s string) (time.Time, bool)

ParseTimeOrDuration is a helper that returns the time or the current time with an extra duration. It's used in flags like --not-before, --not-after.

Types

This section is empty.

Jump to

Keyboard shortcuts

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