utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChoosePath

func ChoosePath(path string) (string, error)

Choose path for the configuration file. Choose path` if supplied otherwise set path within default user directory.

func CommonFlags

func CommonFlags() []cli.Flag

func GetDefaultConfigPath

func GetDefaultConfigPath() string

Return default location within user home directory ($HOME/.config/cleura/config).

func GetUserInput

func GetUserInput(asking string, masked bool) (userInput string, err error)

func ToMap

func ToMap(in interface{}, tag string) (map[string]interface{}, error)

Return a map of KV from an arbitrary struct.

func ValidateNotEmptyString

func ValidateNotEmptyString(ctx *cli.Context, flags ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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