Sha256: 351aef8c0311aabfaa1e33735a1021d61c9afc430a0015e5ae1de862ea6f386f

Contents?: true

Size: 293 Bytes

Versions: 9

Compression:

Stored size: 293 Bytes

Contents

#! /usr/bin/env ruby

# An example of subcommands

require "clamp"

class FlipFlop < Clamp::Command

  subcommand "flip", "flip it" do
    def execute
      puts "FLIPPED"
    end
  end

  subcommand "flop", "flop it" do
    def execute
      puts "FLOPPED"
    end
  end
  
end

FlipFlop.run

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
clamp-0.1.8 examples/flipflop
clamp-0.1.7 examples/flipflop
clamp-0.1.6 examples/flipflop
clamp-0.1.5 examples/flipflop
clamp-0.1.4 examples/flipflop
clamp-0.1.3 examples/flipflop
clamp-0.1.2 examples/flipflop
clamp-0.1.1 examples/flipflop
clamp-0.1.0 examples/flipflop