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.
Click to show internal directories.
Click to hide internal directories.