super gadget
- From:
- Régis d'Aubarède
- Date:
- 2011-08-25 @ 11:17
Hello,
when we develop shoes app, we continuously do <edit,save,run,break...>
So her a snippet for economize one click !
#!/usr/bin/ruby
# Usage
# > allways ruby gui.rb param1 param2 ....
#
# equivalent to > yes | xargs -i ..commande...
#
args= ARGV.map {|p| p.index('*') ? "\"#{p}\"" : p} # for windows
loop { puts args.join(" ") ;puts "-"*80 ; system(*args) ; sleep 1 ; }
--
- - - - - - - - - - - - - - - - -
__ ___ __ . __
|__) |__ / _` | /__`
| \ |___ \__> L| .__/
http://regisaubarede.posterous.com/
- - - - - - - - - - - - - - - - -
Re: [shoes] super gadget
- From:
- Steve Klabnik
- Date:
- 2011-08-25 @ 11:29
Ha! Nice!
You could probably achieve this with guard or watchr too.
Re: [shoes] super gadget
- From:
- Régis d'Aubarède
- Date:
- 2011-08-25 @ 12:12
Yes i have done, but I don't like : you get a rerun after each Ctrl-s ...
2011/8/25 Steve Klabnik <steve@steveklabnik.com>
> Ha! Nice!
>
> You could probably achieve this with guard or watchr too.
>
--
- - - - - - - - - - - - - - - - -
__ ___ __ . __
|__) |__ / _` | /__`
| \ |___ \__> L| .__/
http://regisaubarede.posterous.com/
- - - - - - - - - - - - - - - - -