Documentation
¶
Index ¶
- func BuildBoolNode(key, value, comment string) []*yaml.Node
- func BuildIntNode(key, value, comment string) []*yaml.Node
- func BuildMapNode(key, comment string) (*yaml.Node, *yaml.Node)
- func BuildSequenceNode(key, comment string) (*yaml.Node, *yaml.Node)
- func BuildStringNode(key, value, comment string) []*yaml.Node
- func FileExists(path string) (bool, error)
- func TempAppFile(tmpDir, fileName, fileContent string) *os.File
- type BellSkipper
- type HttpRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBoolNode ¶ added in v0.3.0
func BuildBoolNode(key, value, comment string) []*yaml.Node
func BuildIntNode ¶ added in v0.3.0
func BuildIntNode(key, value, comment string) []*yaml.Node
func BuildMapNode ¶ added in v0.3.0
func BuildMapNode(key, comment string) (*yaml.Node, *yaml.Node)
func BuildSequenceNode ¶ added in v0.3.0
func BuildSequenceNode(key, comment string) (*yaml.Node, *yaml.Node)
func BuildStringNode ¶ added in v0.3.0
func BuildStringNode(key, value, comment string) []*yaml.Node
func FileExists ¶
func TempAppFile ¶ added in v0.9.0
Types ¶
type BellSkipper ¶ added in v0.7.0
type BellSkipper struct{}
bellSkipper implements an io.WriteCloser that skips the terminal bell character (ASCII code 7), and writes the rest to os.Stderr. It is used to replace readline.Stdout, that is the package used by promptui to display the prompts.
This is a workaround for the bell issue documented in https://github.com/manifoldco/promptui/issues/49.
func (*BellSkipper) Close ¶ added in v0.7.0
func (bs *BellSkipper) Close() error
Close implements an io.WriterCloser over os.Stderr.
type HttpRequest ¶ added in v0.7.0
type HttpRequest struct { Body *map[string]string Url string Method string //one of POST, GET, etc. BearerToken *string // contains filtered or unexported fields }
func NewHttpRequest ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.