Documentation ¶
Index ¶
- Variables
- func Android() bool
- func CallCmd(command string) (string, error)
- func CallCmdNoWait(command, app string) (int, error)
- func Distro() string
- func FVersion() string
- func FindProcess(appName string) (int, bool)
- func FullVer() string
- func Hostname() string
- func Linux() bool
- func Mac() bool
- func OSDistro() string
- func OSVersion() (int, int)
- func OSVersionMaj() int
- func OSVersionMinor() int
- func RunAppMac(app string) error
- func RunAppNoPath(app string) error
- func RunAppWithPath(app, path string) ([]byte, error)
- func Windows() bool
- type OSCommand
- type Platform
- type Shell
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoOpenCommand : When we don't know which command to use to open a file ErrNoOpenCommand = errors.New("unsure what command to use to open this file") )
Functions ¶
func CallCmdNoWait ¶ added in v0.0.3
CallCmdNoWait execute app if not already running
func FindProcess ¶ added in v0.0.3
FindProcess find by application name return pid and if running true/false
func OSVersionMaj ¶
func OSVersionMaj() int
func OSVersionMinor ¶
func OSVersionMinor() int
func RunAppNoPath ¶
RunAppNoPath run the application wherever you can find it
func RunAppWithPath ¶
RunAppWithPath run the application with the specific path
Types ¶
type OSCommand ¶
OSCommand holds all the os commands
func NewOSCommand ¶
NewOSCommand os command runner
func (*OSCommand) GetOpenCommand ¶
GetOpenCommand get open command
func (*OSCommand) RunCommand ¶
RunCommand runs a command and just returns the error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.