brendan.mcdevitt.tech/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/script/examples
2019-04-30 01:38:19 -05:00

18 lines
398 B
Bash
Executable file

#! /bin/bash
set -e
function run () {
echo "+ ruby ./examples/$@"
ruby -e "puts '=' * 79"
ruby ./examples/$@
ruby -e "puts '=' * 79"
}
run logging.rb
run logging.rb -v
run help_dialogue.rb -h
run help_dialogue.rb some_subcommand -h
run help_dialogue.rb another_subcommand -h
run help_dialogue.rb some_subcommand yet_another_sub -h
run help_dialogue.rb some_subcommand yet_another_sub -b