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

Functions

func Run

func Run(input string) error

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

func RunWith(input string, appName string) error

Open a file, directory, or URI using the specified application. Wait for the open command to complete.

func Start

func Start(input string) error

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

func StartWith(input string, appName string) error

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.8.1
Published
Jan 13, 2015
Platform
js/wasm
Imports
1 packages
Last checked
1 minute ago

Tools for package owners.