Sha256: a38ebbfe17f8796a0b478ab96c625d1e6b5005b12dd4cfb11e30605eed198971

Contents?: true

Size: 245 Bytes

Versions: 18

Compression:

Stored size: 245 Bytes

Contents

#! /usr/bin/env ruby

# An example of subcommands

require "clamp"

class Fubar < Clamp::Command

  subcommand "foo", "Foo!" do

    subcommand "bar", "Baaaa!" do

      def execute
        puts "FUBAR"
      end

    end

  end

end

Fubar.run

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
clamp-0.5.1 examples/fubar
clamp-0.5.0 examples/fubar
clamp-0.4.0 examples/fubar
jls-clamp-0.3.1.2 examples/fubar
jls-clamp-0.3.1 examples/fubar
clamp-0.3.1 examples/fubar
clamp-0.3.0 examples/fubar
clamp-0.2.3 examples/fubar
clamp-0.2.2 examples/fubar
clamp-0.2.1 examples/fubar
clamp-0.2.0 examples/fubar
clamp-0.1.8 examples/fubar
clamp-0.1.7 examples/fubar
clamp-0.1.6 examples/fubar
clamp-0.1.5 examples/fubar
clamp-0.1.4 examples/fubar
clamp-0.1.3 examples/fubar
clamp-0.1.2 examples/fubar