bash

package
v0.0.0-...-14ca49f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (bc *BashCommand) GetObjects() (*network.NETWORK, *shell.SHELL, *php.PHP)

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 Create

func Create(srv *network.NETWORK, shl *shell.SHELL, php *php.PHP) *BashInterface

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)

Jump to

Keyboard shortcuts

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