command

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 0 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 interface {
	// Prompt will show commandLine prompt
	Prompt() string

	// SetValue on command is finish will set
	SetValue(val string)

	// Value get set be value
	Value() string
}

type SaveFile

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

func (*SaveFile) Prompt

func (s *SaveFile) Prompt() string

func (*SaveFile) SetValue

func (s *SaveFile) SetValue(val string)

func (*SaveFile) Value

func (s *SaveFile) Value() string

type Unknown

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

Unknown command, means user input cloud not be parsed.

func (*Unknown) Prompt

func (u *Unknown) Prompt() string

func (*Unknown) SetValue

func (u *Unknown) SetValue(val string)

func (*Unknown) Value

func (u *Unknown) Value() string

Jump to

Keyboard shortcuts

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