Documentation
¶
Index ¶
- func AppendDotEnvExtension(path string) string
- func CheckDoubleDashS(input string, argName string) error
- func ExtractFilenameArg(args []string) (s string)
- func ExtractVaultNameArg(args []string, vaults []string) (string, error)
- func GetVaultFile(envfile string) (map[string]string, error)
- func GetVaultOptsPath(envfile string) string
- func InitVaultFile(envfile string, opts map[string]string) error
- func MathMax(a, b int) int
- func MathMin(a, b int) int
- func TestVaultFileExists(envfile string) error
- func ToIndentedJson(data any) string
- func ValidateIsoDate(s string) error
- func VaultOptsExist(envfile string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendDotEnvExtension ¶
append .env extension to path if not already there
func CheckDoubleDashS ¶
check if string input is part of argName. if you meant --argument, but wrote -argument, the value coming from cobra would be "rgument" example: if argName is "argument", v should not be "rgument"..
func ExtractFilenameArg ¶
extract filename from cobra args
func ExtractVaultNameArg ¶
extract vault name from cobra args
func GetVaultFile ¶
open read vault options from .env.vaultopts
func GetVaultOptsPath ¶
func InitVaultFile ¶
get vault options from .env.vaultopts
func TestVaultFileExists ¶
func ToIndentedJson ¶
// returns whatever data as json, indented. for readability and debugging
func ValidateIsoDate ¶
func VaultOptsExist ¶
Types ¶
This section is empty.