flags

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdScan

type CmdScan struct {
	ProtectArchiveWithPasswd bool
	PasswordByte             []byte
	PathToArchive            string
	ArchiveOutPath           string
	NewArchiveName           string
	ArchiveExtract           string
	GitRepo                  string
	EncryptPath              string
	DecryptPath              string
	EncryptPassword          []byte
	DecryptPassword          []byte
}

CmdScan - represents scanned flags from the stdin.

func ParseAllFlags

func ParseAllFlags() *CmdScan

ParseAllFlags - parses flags from the tty and applies validation for that input.

func (*CmdScan) ReadUserInput

func (cs *CmdScan) ReadUserInput(fn getScannerFn)

ReadUserInput - is used for interactive CLI mode.

User will be prompted line by line for the required information. If something is left out, it will be ignored

if not required. But if it's required then a default value will be used instead.

But for cases like Password for protecting the Archive - it can be left blank, but it's advised not to do so.

Jump to

Keyboard shortcuts

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