search fire star recently

stdio

A small Crystal library for capturing standard I/O streams.

0.1.1 Yanked release released
mosop/stdio
5

Crystal Stdio

A small library for capturing stdios written in Crystal.

Build Status

Installation

Add this to your application's shard.yml:

dependencies:
  stdio:
    github: mosop/stdio

Usage

require "stdio"

out, err = Stdio.capture do |io|
  STDOUT.puts ":)"
  STDERR.puts ":("
  [io.out.gets, io.err.gets]
end

puts out # prints ":)"
puts err # prints ":("

Development

[WIP]

Contributing

  1. Fork it ( https://github.com/mosop/stdio/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

  • mosop - creator, maintainer
stdio:
  github: mosop/stdio
  version: ~> 0.1.1

Authors

  • mosop

License

MIT

Crystal

none

Dependencies 0

Development Dependencies 0

Last synced .