Created
December 3, 2009 18:01
-
-
Save jferris/248371 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # autocompletion for cuc | |
| _cucumber_features() { | |
| compadd `ls features/**/*.feature | sed "s/features\/\(.*\).feature/\1/"` | |
| } | |
| compdef _cucumber_features cuc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| args = ARGV.map do |arg| | |
| name, line = *arg.split(':') | |
| line = ":#{line}" if line | |
| "features/#{name}.feature#{line}" | |
| end | |
| script = if File.executable?('script/cucumber') | |
| 'script/cucumber' | |
| else | |
| 'cucumber' | |
| end | |
| exec(script, *args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment