Documentation ¶
Index ¶
- type BashCommand
- func (bc *BashCommand) Exec()
- func (bc *BashCommand) GetArr() []string
- func (bc *BashCommand) GetArrItem(i int, def string) string
- func (bc *BashCommand) GetArrLgt() int
- func (bc *BashCommand) GetObjects() (*network.NETWORK, *shell.SHELL, *php.PHP)
- func (bc *BashCommand) GetPHP() *php.PHP
- func (bc *BashCommand) GetParent() *BashInterface
- func (bc *BashCommand) GetRaw() string
- func (bc *BashCommand) GetServer() *network.NETWORK
- func (bc *BashCommand) GetShell() *shell.SHELL
- func (bc *BashCommand) GetStr() string
- func (bc *BashCommand) Write(str string, err error)
- func (bc *BashCommand) WriteError(err error)
- func (bc *BashCommand) WriteSuccess(str string)
- type BashInterface
- func (b *BashInterface) AddSpCmd(name string, function spFunc)
- func (b *BashInterface) CreateCommand(raw string) *BashCommand
- func (b *BashInterface) Decode(bc *BashCommand)
- func (b *BashInterface) Encode(bc *BashCommand)
- func (b *BashInterface) Exit(bc *BashCommand)
- func (b *BashInterface) Run(bc *BashCommand)
- func (b *BashInterface) SetDefaultFunc(fn spFunc)
- func (b *BashInterface) SetPrompt(p string)
- func (b *BashInterface) Start()
- func (b *BashInterface) Stop()
- func (b *BashInterface) Sys(bc *BashCommand)
- func (b *BashInterface) UpdatePrompt(p string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BashCommand ¶
type BashCommand struct {
// contains filtered or unexported fields
}
func (*BashCommand) Exec ¶
func (bc *BashCommand) Exec()
func (*BashCommand) GetArr ¶
func (bc *BashCommand) GetArr() []string
func (*BashCommand) GetArrItem ¶
func (bc *BashCommand) GetArrItem(i int, def string) string
func (*BashCommand) GetArrLgt ¶
func (bc *BashCommand) GetArrLgt() int
func (*BashCommand) GetObjects ¶
func (*BashCommand) GetPHP ¶
func (bc *BashCommand) GetPHP() *php.PHP
func (*BashCommand) GetParent ¶
func (bc *BashCommand) GetParent() *BashInterface
func (*BashCommand) GetRaw ¶
func (bc *BashCommand) GetRaw() string
func (*BashCommand) GetServer ¶
func (bc *BashCommand) GetServer() *network.NETWORK
func (*BashCommand) GetShell ¶
func (bc *BashCommand) GetShell() *shell.SHELL
func (*BashCommand) GetStr ¶
func (bc *BashCommand) GetStr() string
func (*BashCommand) Write ¶
func (bc *BashCommand) Write(str string, err error)
func (*BashCommand) WriteError ¶
func (bc *BashCommand) WriteError(err error)
func (*BashCommand) WriteSuccess ¶
func (bc *BashCommand) WriteSuccess(str string)
type BashInterface ¶
type BashInterface struct {
// contains filtered or unexported fields
}
func (*BashInterface) AddSpCmd ¶
func (b *BashInterface) AddSpCmd(name string, function spFunc)
func (*BashInterface) CreateCommand ¶
func (b *BashInterface) CreateCommand(raw string) *BashCommand
func (*BashInterface) Decode ¶
func (b *BashInterface) Decode(bc *BashCommand)
func (*BashInterface) Encode ¶
func (b *BashInterface) Encode(bc *BashCommand)
func (*BashInterface) Exit ¶
func (b *BashInterface) Exit(bc *BashCommand)
func (*BashInterface) Run ¶
func (b *BashInterface) Run(bc *BashCommand)
func (*BashInterface) SetDefaultFunc ¶
func (b *BashInterface) SetDefaultFunc(fn spFunc)
func (*BashInterface) SetPrompt ¶
func (b *BashInterface) SetPrompt(p string)
func (*BashInterface) Start ¶
func (b *BashInterface) Start()
func (*BashInterface) Stop ¶
func (b *BashInterface) Stop()
func (*BashInterface) Sys ¶
func (b *BashInterface) Sys(bc *BashCommand)
func (*BashInterface) UpdatePrompt ¶
func (b *BashInterface) UpdatePrompt(p string)
Click to show internal directories.
Click to hide internal directories.