helpers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists checks if a file exists in the file system. Note that this function will not check if the file is readable, or if the file is a directory, only if it exists.

func FileIsReadable

func FileIsReadable(filename string) bool

FileIsReadable checks that a file exists, and is readable by the program.

func FormatSubcommandUsage

func FormatSubcommandUsage(usageString string) string

FormatSubcommandUsage moves the lines in the standard usage strings around so that the usage string is indented under the help text instead of above it.

func PromptPassword

func PromptPassword(message string) (password string, err error)

PromptPassword creates a user prompt for inputting passwords, where all characters are masked with "*"

Types

type EncryptionFileSet

type EncryptionFileSet struct {
	Unencrypted string
	Encrypted   string
}

struct type to keep track of infiles and outfiles for encryption and decryption

Jump to

Keyboard shortcuts

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