gcmd

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChmodAddX

func ChmodAddX(filename string) error

func ExecWaitPrintScreen

func ExecWaitPrintScreen(name string, arg ...string) error

will print screen

func ExecWaitReturn

func ExecWaitReturn(name string, arg ...string) ([]byte, error)

will not print screen

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 StartCmder

func StartCmder(screenPrint bool, cmd string, arg ...string) *Cmder

func (*Cmder) GetPid

func (c *Cmder) GetPid() int32

func (*Cmder) GetResultOutput

func (c *Cmder) GetResultOutput() (string, error)

func (*Cmder) Kill

func (c *Cmder) Kill() error

func (*Cmder) Wait

func (c *Cmder) Wait() error

func (*Cmder) WaitWithTimeout

func (c *Cmder) WaitWithTimeout(timeout time.Duration) (execTimeout bool, execError error)

Jump to

Keyboard shortcuts

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