open.cr

Tiny library to open something in Crystal

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
Repository

open.cr

Owner
Statistic
  • 1
  • 1
  • 0
  • 1
  • 0
  • about 8 years ago
  • October 2, 2015
License

MIT License

Links
Synced at

Thu, 26 Dec 2024 18:30:33 GMT

Languages