util

package
v0.0.0-...-dd99716 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold() *color.Color

func BoldError

func BoldError(err string) error

func BoldGreen

func BoldGreen() *color.Color

func BoldRed

func BoldRed() *color.Color

func CloneAndPullTemplatesRepo

func CloneAndPullTemplatesRepo(repo string, templateDir string) error

func CreateDir

func CreateDir(folderPath string) error

func DefaultLoading

func DefaultLoading(loadingFunc func(sp *spinner.Spinner) error, loadingText string, prefixEmoji string) error

func EmojiPrintln

func EmojiPrintln(emojiPrefix string, text string)

func FileExists

func FileExists(filename string) bool

func InitCliHomeDir

func InitCliHomeDir(templateDir string) error

func IsDir

func IsDir(dirInput string) bool

func IsDirEmpty

func IsDirEmpty(name string) (bool, error)

func Loading

func Loading(loadingFunc func(sp *spinner.Spinner) error, prefixEmoji string, loadingText string, successEmoji string, errorEmoji string) (*spinner.Spinner, error)

func RunCmd

func RunCmd(name string, args ...string) (error, *bytes.Buffer)

func RunCmdIn

func RunCmdIn(in *bytes.Buffer, name string, args ...string) (error, *bytes.Buffer)

func RunCmdInDir

func RunCmdInDir(dir string, name string, args ...string) (error, *bytes.Buffer)

func RunCmdInteractive

func RunCmdInteractive(name string, args ...string) error

func RunCmdInteractiveInDir

func RunCmdInteractiveInDir(dir string, name string, args ...string) error

func Select

func Select(label string, items map[string]interface{}) (interface{}, error)

func SimplePrompt

func SimplePrompt(prompt *promptui.Prompt, confirmable bool) (interface{}, error)

func YesNoPrompt

func YesNoPrompt(label string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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