Last 12 weeks · 0 commits
1 of 6 standards met
Repository: tj/bind. Description: Ruby - Bind actions to various file system events such as auto-testing Stars: 16, Forks: 2. Primary language: Ruby. Languages: Ruby (100%). Open PRs: 0, open issues: 2. Last activity: 16y ago. Community health: 28%. Top contributors: tj.
Basically I would like to write instead of Does this seems reasonable? Crude hack illustrating the concept: diff --git a/bin/rbind b/bin/rbind index 79bc0c6..faa9ebd 100644 a/bin/rbind +++ b/bin/rbind @@ -18,7 +18,9 @@ command :to do c.example 'Bind to a file, and a directory of files', "rbind to stylesheets style.css -e 'puts file.path'" c.example 'Run specs when ruby files are modified', "rbind to 'lib/*/.rb' -e 'system \"rake spec\"'" c.action do abort 'invalid option. --eval switch is required in order to perform any action on the bound file(s)' unless options.eval + unless options.eval + options.eval = "system('#{args.pop}')" + end common_options options options.paths = args listener(options).run!