package
0.0.2-rc.1
Repository: https://github.com/apty/cli.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Fail prints out the error struct if STEPDEBUG is true otherwise it just prints out the error message.
GetKeyDetailsFromCLI gets the key pair algorithm, curve, and size inputs from the CLI context.
ReadAll returns a slice of bytes with the content of the given reader.
ReadInput from stdin if something is detected or ask the user for an input using the given prompt.
ReadPassword asks the user for a password using the given prompt.
ReadString reads one line from the given io.Reader.
WriteFile wraps ioutil.WriteFile with a prompt to overwrite a file if the file exists.

# Constants

DefaultECCurve sets the default curve for EC to P-256.
DefaultRSASize sets the default key size for RSA to 2048 bits.

# Variables

ErrFileExists is the error returned if a file exists.
ErrIsDir is the error returned if the file is a directory.