A command line tool for sleep by space.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
Gemfile
LICENSE.txt
NEWS.md
README.md
Rakefile
spsleep.gemspec

README.md

spsleep

A command line tool for sleep by space.

Installation

gem install spsleep

Usage (for Linux)

case 1

% ls
foo bar baz

% ls | spsleep
foo
  (pause for a 1 second)
bar
  (pause for a 1 second)
baz
  (pause for a 1 second)

case 2

% ls
foo bar baz

% ls | spsleep 0.5
foo
  (pause for 0.5 seconds)
bar
  (pause for 0.5 seconds)
baz
  (pause for 0.5 seconds)

case 3

% cat foo.txt
foo
bar
baz

% spsleep foo.txt
foo
  (pause for a 1 second)
bar
  (pause for a 1 second)
baz
  (pause for a 1 second)

case 4

% cat foo.txt
foo
bar
baz

% spsleep 0.5 foo.txt
foo
  (pause for 0.5 seconds)
bar
  (pause for 0.5 seconds)
baz
  (pause for 0.5 seconds)

Usage (for Windows)

case 1

> dir /b
foo
bar
baz

> dir /b | spsleep
foo
  (pause for a 1 second)
bar
  (pause for a 1 second)
baz
  (pause for a 1 second)

case 2

> dir /b
foo
bar
baz

> dir /b | spsleep 0.5
foo
  (pause for 0.5 seconds)
bar
  (pause for 0.5 seconds)
baz
  (pause for 0.5 seconds)

case 3

> type foo.txt
foo
bar
baz

> spsleep foo.txt
foo
  (pause for a 1 second)
bar
  (pause for a 1 second)
baz
  (pause for a 1 second)

case 4

> type foo.txt
foo
bar
baz

> spsleep 0.5 foo.txt
foo
  (pause for 0.5 seconds)
bar
  (pause for 0.5 seconds)
baz
  (pause for 0.5 seconds)

Contributing

  1. Fork it
  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 new Pull Request