cli

package
v0.0.0-...-f91b318 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadPassword

func ReadPassword(prompt string) ([]byte, error)

ReadPassword reads a password from the terminal

Types

type Options

type Options struct {
	Encode bool
	Decode bool
	Help   bool
}

Options contain the command line options passed to the program.

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line options.

func (*Options) PrintUsage

func (opt *Options) PrintUsage()

PrintUsage prints the usage of the program.

func (*Options) Valid

func (opt *Options) Valid() bool

Valid checks command line options are valid.

Jump to

Keyboard shortcuts

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