cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const FingerprintByteLength = 64

FingerprintByteLength is our fingerprint byte length

View Source
const Shake256MinBytesRequired = 64

Shake256MinBytesRequired is our minimum bytes required for input to SHAKE-256

Variables

View Source
var InvalidFingerprintMsg = fmt.Sprintf("The fingerprint in use is not %d bytes long and a valid hexidecimal string", FingerprintByteLength)

InvalidFingerprintMsg is the user-friendly error message if fingerprint is invalid

View Source
var VersionGitCommit string

VersionGitCommit The git commit this build is from. Do not change variable name as used by CI build through -ldflags.

View Source
var VersionGitTag string

VersionGitTag The git tag this build is from. Do not change variable name as used by CI build through -ldflags.

Functions

func ConfigureCommandFunc added in v0.0.3

func ConfigureCommandFunc(cmd *cobra.Command, args []string)

ConfigureCommandFunc is a handler for the configure command

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func IsValidFingerprint added in v0.0.4

func IsValidFingerprint(fingerprint string) bool

IsValidFingerprint determines if a fingerprint is valid.

func RootCommandFunc

func RootCommandFunc(cmd *cobra.Command, args []string)

RootCommandFunc is a handler for the bare application

func VersionCommandFunc added in v0.0.3

func VersionCommandFunc(cmd *cobra.Command, args []string)

VersionCommandFunc is a handler for the version command

Types

This section is empty.

Jump to

Keyboard shortcuts

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