Skip to content

pbnj/go-open

Repository files navigation

go-open

Cross-platform CLI application to open files, directories, URLs from the command-line, written in Go.

Build Status License: MIT

Install

API

go get github.com/pbnj/go-open

CLI

go get github.com/pbnj/go-open/cmd/gopen

Usage

API

import open "github.com/pbnj/go-open"

open.Open("file.txt")             // will open file in default text editor
open.Open("https://google.com")   // will open url in default browser
open.Open("image.png")            // will open image in default image editor

CLI

gopen file.txt
gopen https://google.com
gopen some_file.txt another_file.txt https://google.com https://github.com

License

MIT © 2017 Peter Benjamin

About

Cross-platform CLI application to open files, directories, URLs from the command-line.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published