tools

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(text string) bool

func ConfirmWithDefault

func ConfirmWithDefault(text string, defaultValue bool) bool

func Prompt

func Prompt(text string) string

Prompt ...

func PromptCached

func PromptCached(text, key string) string

PromptCached ...

func PromptSecret

func PromptSecret(text string) string

PromptSecret ...

func PromptSecretCached

func PromptSecretCached(text, key string) string

PromptSecretCached ...

func PromptWithChoice

func PromptWithChoice(name string, choices []string) (int, error)

PromptWithChoice ...

func PromptWithMultiChoice

func PromptWithMultiChoice(name string, choices []string) ([]int, error)

PromptWithMultiChoice ...

func Run

func Run(cmd string) ([]byte, error)

Run ...

func RunInDir

func RunInDir(cmd, dir string) ([]byte, error)

RunInDir ...

func RunInteractive

func RunInteractive(cmd string) error

RunInteractive ...

func RunInteractiveInDir

func RunInteractiveInDir(cmd, dir string) error

RunInteractiveInDir ...

func RunWithInput

func RunWithInput(cmd string, input []byte) ([]byte, error)

RunWithInput ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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