File: examples

package info (click to toggle)
ruby-mercenary 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 192 kB
  • sloc: ruby: 570; sh: 25; makefile: 6
file content (18 lines) | stat: -rwxr-xr-x 398 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /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