utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpinnerCharSet = spinner.CharSets[1]

Character set used for all spinners

Functions

func Confirm

func Confirm(q string) bool

Confirm with a user

func GetBool added in v1.4.0

func GetBool(name string, cmd *cobra.Command) bool

Get a flag with type bool

func GetInt added in v1.4.0

func GetInt(name string, cmd *cobra.Command) int

Get an flag with type int

func HasInternetConnection

func HasInternetConnection() bool

Check if the user has an internet connection

func ReadYAML

func ReadYAML(fName string, data interface{}) error

Read from a yaml file

func WriteYAML

func WriteYAML(data interface{}, fName string) error

Write to a yaml file

Types

This section is empty.

Jump to

Keyboard shortcuts

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