Documentation ¶
Index ¶
- func ChmodAddX(filename string) error
- func CommandExists(cmd string) bool
- func ExecWaitPrintScreen(name string, arg ...string) error
- func ExecWaitReturn(name string, arg ...string) ([]byte, error)
- func RunScript(shellCommand string) ([]byte, error)
- func RunScripts(scripts ...string) ([]byte, error)
- type BrowserCMD
- type Cmd
- type Cmder
- type Interact
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecWaitPrintScreen ¶
will print screen
func ExecWaitReturn ¶
will not print screen
func RunScript ¶
RunScript run shell script just like in the terminal. This function waits until the end of the command execution before returning the result.
func RunScripts ¶
RunScripts run shell scripts just like in the terminal.
Types ¶
type BrowserCMD ¶
type BrowserCMD struct { }
func NewBrowser ¶
func NewBrowser() *BrowserCMD
func (*BrowserCMD) OpenFile ¶
func (b *BrowserCMD) OpenFile(path string) error
func (*BrowserCMD) OpenURL ¶
func (b *BrowserCMD) OpenURL(url string) error
func (*BrowserCMD) OpenURLAppMode ¶
func (b *BrowserCMD) OpenURLAppMode(url string) error
open in Chrome APP mode, no toolbar/buttons, just web page
type Cmder ¶
type Cmder struct {
// contains filtered or unexported fields
}
func (*Cmder) GetResultOutput ¶
type Interact ¶
type Interact struct {
// contains filtered or unexported fields
}
func NewInteract ¶
func NewInteract() *Interact
Source Files ¶
Click to show internal directories.
Click to hide internal directories.