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
  • over 7 years ago
  • October 2, 2015
License

MIT License

Links
Synced at

Fri, 17 May 2024 11:54:38 GMT

Languages