File: fubar

package info (click to toggle)
ruby-clamp 0.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 280 kB
  • ctags: 189
  • sloc: ruby: 2,071; makefile: 4
file content (21 lines) | stat: -rwxr-xr-x 214 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/env ruby

# An example of subcommands

require "clamp"

Clamp do

  subcommand "foo", "Foo!" do

    subcommand "bar", "Baaaa!" do

      def execute
        puts "FUBAR"
      end

    end

  end

end