Documentation
¶
Index ¶
- type CmdInput
- func (I *CmdInput) ArgsContains(query []string) bool
- func (I *CmdInput) GetArgs() []string
- func (I *CmdInput) GetArgsLowercase() []string
- func (I *CmdInput) GetCommand() string
- func (I *CmdInput) IsAdmin() bool
- func (I *CmdInput) NumberOfArgsAre(n int) bool
- func (I *CmdInput) NumberOfArgsAreAtleast(n int) bool
- func (I *CmdInput) ParseInput(input string, adminPerm bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdInput ¶
type CmdInput struct {
// contains filtered or unexported fields
}
CmdInput holds a command
func (*CmdInput) ArgsContains ¶
ArgsContains looks for and returns a bool depending on if the args in the command has a specific string in it from a slice
func (*CmdInput) GetArgsLowercase ¶
GetArgsLowercase returns the args
func (*CmdInput) NumberOfArgsAre ¶
func (*CmdInput) NumberOfArgsAreAtleast ¶
func (*CmdInput) ParseInput ¶
ParseInput parses a input string from the user It creates the CmdInput struct with the required data
Click to show internal directories.
Click to hide internal directories.