package open
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/skratchdot/open-golang/open"
Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
This is a proxy for the following commands:
OSX: "open" Windows: "start" Linux/Other: "xdg-open"
This is a golang port of the node.js module: https://github.com/pwnall/node-open
Index ¶
- func Run(input string) error
- func RunWith(input string, appName string) error
- func Start(input string) error
- func StartWith(input string, appName string) error
Functions ¶
func Run ¶
Open a file, directory, or URI using the OS's default application for that object type. Wait for the open command to complete.
func RunWith ¶
Open a file, directory, or URI using the specified application. Wait for the open command to complete.
func Start ¶
Open a file, directory, or URI using the OS's default application for that object type. Don't wait for the open command to complete.
func StartWith ¶
Open a file, directory, or URI using the specified application. Don't wait for the open command to complete.
Source Files ¶
exec.go open.go
- Version
- v0.5.6
- Published
- Dec 12, 2014
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 11 seconds ago –
Tools for package owners.