Documentation
¶
Overview ¶
Package cli contains all logic pertaining to the Pincher CLI state
Index ¶
Constants ¶
View Source
const ( NotRegistered registrationStatus = iota Preregistered Registered )
Variables ¶
This section is empty.
Functions ¶
func ExtractStrings ¶
func MaxOfStrings ¶
Types ¶
type HandlerFunc ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger handles all slog output. Letting this type have the final say allows for ...what? Why did I do all this again?
type State ¶
type State struct {
DoneChan *chan bool
Logger *Logger
Config *config.Config
Client *client.Client
Session *cliSession
CmdQueue chan<- string
// contains filtered or unexported fields
}
State represents the full state of the CLI during a session, regardless of user login. It knows the full context of all systems connected.
func (*State) GetPrompt ¶
GetPrompt returns the proper input prompt to print to the command line, dependent on user activity during this session.
func (*State) NewSession ¶
func (s *State) NewSession()
Click to show internal directories.
Click to hide internal directories.