cmd

package
v0.32.5 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command is command-line utility, used for gathering input through prompt from user.

func NewCommand

func NewCommand(in io.Reader, out io.Writer) *Command

NewCommand creates a new Command and return its pointer.

func (*Command) Log

func (c *Command) Log(message string)

Log log the message using Command default output.

func (*Command) PromptBool

func (c *Command) PromptBool(message string, def bool) bool

PromptBool prompt a question with yes/no answer, returns true if user answered yes, returns false otherwise.

Jump to

Keyboard shortcuts

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