utils

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPrompt

func BoolPrompt(prompt *promptui.Prompt) bool

func HumanInteger added in v0.1.23

func HumanInteger[N constraints.Integer](input N) string

HumanInteger returns the number in a human readable format

func OpenBrowser

func OpenBrowser(url string)

OpenBrowser opens the given url in a browser

func PrettyVersion added in v0.1.13

func PrettyVersion(version string) string

PrettyVersion returns a pretty colored version string for terminal printing

func ReadJSONFile

func ReadJSONFile(filename string, i interface{}) error

ReadJSONFile parses the given file into i

func SelectPrompt

func SelectPrompt(prompt *promptui.Select) string

func SimpleGitExec

func SimpleGitExec(args string) (simpleGitExecOutput, error)

SimpleGitExec runs a git command and returns the output in a easy to process way

func StringPrompt

func StringPrompt(prompt *promptui.Prompt) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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