open.cr

Version, currently master branch1 version
  • master branchlatestDec 18, 2016

github.com/rhysd/open.cr

Tiny library to open something in Crystal

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  open.cr:
    github: rhysd/open.cr
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Authors
rhysd, Fusion

Dependencies

This version declares no dependencies.

README

External::open

Build Status

External.open is a method to open something in manner or current OS. This is inspired by node-open.

Installation

Add this to your application's shard.yml:

dependencies:
  open.cr:
    github: rhysd/open.cr

Usage

require "external/open"

External.open "http://crystal-lang.org/"
External.open "file:///Users/foo/Documents/somedoc.pdf"
External.open "../../README.md"
External.open "musics/bar.mp3"

Contributing

  1. Fork it ( https://github.com/rhysd/open/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • @rhysd - creator, maintainer