prompt

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptCommandLine

func PromptCommandLine(message, prompt string) (string, error)

Types

type Prompt

type Prompt struct {
	Message              string   `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	Prompt               string   `protobuf:"bytes,2,opt,name=prompt" json:"prompt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Prompt) Descriptor

func (*Prompt) Descriptor() ([]byte, []int)

func (*Prompt) GetMessage

func (m *Prompt) GetMessage() string

func (*Prompt) GetPrompt

func (m *Prompt) GetPrompt() string

func (*Prompt) ProtoMessage

func (*Prompt) ProtoMessage()

func (*Prompt) Reset

func (m *Prompt) Reset()

func (*Prompt) String

func (m *Prompt) String() string

func (*Prompt) XXX_DiscardUnknown

func (m *Prompt) XXX_DiscardUnknown()

func (*Prompt) XXX_Marshal

func (m *Prompt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Prompt) XXX_Merge

func (dst *Prompt) XXX_Merge(src proto.Message)

func (*Prompt) XXX_Size

func (m *Prompt) XXX_Size() int

func (*Prompt) XXX_Unmarshal

func (m *Prompt) XXX_Unmarshal(b []byte) error

type PromptKind

type PromptKind uint8
const (
	PromptKindSecret PromptKind = iota
	PromptKindEcho
	PromptKindBinary
)

func Classify

func Classify(prompt string) PromptKind

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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