Sha256: eebaf6dc50868ae30b2ac4ffc02d0395da7c68168a2a61edcb23fa378b0079b1

Contents?: true

Size: 242 Bytes

Versions: 2

Compression:

Stored size: 242 Bytes

Contents

#! /usr/bin/env ruby

require "clamp"

Clamp do

  subcommand "hello", "Say hello" do
    def execute
      puts "Hello"
    end
  end

  def subcommand_missing(name)
    abort "Install bye plugin first" if name == "bye"
    super
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clamp-1.1.1 examples/subcommand_missing
clamp-1.1.0 examples/subcommand_missing