cl

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 7 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 and is not a directory before we try using it to prevent further errors.

func GetSecret

func GetSecret(prompt, envKey string) ([]byte, error)

GetSecret read a password from the terminal

func GetWorkDir

func GetWorkDir(appName string) (string, error)

GetWorkDir returns the application working directory creating it if does not exists.

func HandleErr

func HandleErr(err error)

HandleErr check for an error and eventually exit the app

Types

This section is empty.

Jump to

Keyboard shortcuts

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