Documentation
¶
Index ¶
- type ExecCommandType
- type ExecSuggestionType
- type HistoryHandler
- func (h *HistoryHandler) AddToHistory(data string)
- func (h *HistoryHandler) Clear()
- func (h *HistoryHandler) GetHistory() []string
- func (h *HistoryHandler) GetHistoryAtPos(pos int) (string, bool)
- func (h *HistoryHandler) GetHistoryNext() (string, bool)
- func (h *HistoryHandler) GetHistoryPrev() (string, bool)
- func (h *HistoryHandler) SetDefault(def string)
- func (h *HistoryHandler) SetEnabled(enabled bool)
- type Shell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecCommandType ¶
type ExecSuggestionType ¶
type HistoryHandler ¶
type HistoryHandler struct { Queue []string // contains filtered or unexported fields }
func NewHistoryHandler ¶
func NewHistoryHandler(max uint, autosave bool) *HistoryHandler
func (*HistoryHandler) AddToHistory ¶
func (h *HistoryHandler) AddToHistory(data string)
func (*HistoryHandler) Clear ¶
func (h *HistoryHandler) Clear()
func (*HistoryHandler) GetHistory ¶
func (h *HistoryHandler) GetHistory() []string
func (*HistoryHandler) GetHistoryAtPos ¶
func (h *HistoryHandler) GetHistoryAtPos(pos int) (string, bool)
func (*HistoryHandler) GetHistoryNext ¶
func (h *HistoryHandler) GetHistoryNext() (string, bool)
func (*HistoryHandler) GetHistoryPrev ¶
func (h *HistoryHandler) GetHistoryPrev() (string, bool)
func (*HistoryHandler) SetDefault ¶
func (h *HistoryHandler) SetDefault(def string)
func (*HistoryHandler) SetEnabled ¶
func (h *HistoryHandler) SetEnabled(enabled bool)
type Shell ¶
type Shell struct { ExecSuggestion ExecSuggestionType ExecCommand ExecCommandType // contains filtered or unexported fields }
func NewShell ¶
func NewShell(auth interfaces.IAuthenticator, terminal interfaces.ITerminal, prompt string, autosave bool) *Shell
func (*Shell) ClearHistory ¶
func (c *Shell) ClearHistory()
func (*Shell) GetHistory ¶
func (*Shell) SetHistoryDefault ¶
Click to show internal directories.
Click to hide internal directories.