Documentation ¶
Index ¶
- func Cat(filepath string) (string, error)
- func Exec(cmd string) (string, error)
- func ExecOutput(cmdline string) string
- func ExecWithEnv(cmd string, env map[string]string) (string, error)
- func Grep(re, lines string) (string, error)
- func IsSystemCmd(cmd string) bool
- func MemInfo(field string) string
- func RunWithAssignedApp(runThis string) string
- func Uptime() string
- type Console
- type ConsolePipe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecOutput ¶
ExecOutput can be passed a command to quickly get its output or error.
func IsSystemCmd ¶
If a command is present in available system path.
func RunWithAssignedApp ¶
Run it for distro to manage opening with correct program
Types ¶
type ConsolePipe ¶
func (*ConsolePipe) Clean ¶
func (konsolePipe *ConsolePipe) Clean()
Clean cleans up the process and then the pipe.
func (*ConsolePipe) Pipe ¶
func (konsolePipe *ConsolePipe) Pipe(input string) error
Pipe pipes given input to PipePath.
func (*ConsolePipe) Run ¶
func (konsolePipe *ConsolePipe) Run() error
Run executes command from console with a pipe to get back.
Click to show internal directories.
Click to hide internal directories.