Sha256: 34328ed937a36e0ebcacf6e27b6ce73f512e7ebbbece99e5262c5facc32389b5

Contents?: true

Size: 710 Bytes

Versions: 1

Compression:

Stored size: 710 Bytes

Contents

<% if header %>
begin
  require 'quickl'
rescue LoadError
  require 'rubygems'
  gem 'quickl'
  retry  
end
<% end %>
#
# FIX: overview
#
# SYNOPSIS
#   #{command_name} [options] ARGS...
#
# OPTIONS
# #{summarized_options}
#
# DESCRIPTION
#   FIX: description 
#
class <%= cmd_class_name %> < Quickl::Command(__FILE__, __LINE__)

  VERSION   = "0.1.0"

  # Install options
  options do |opt|
<%= option_helpers.collect{|s| tabto(s,4)}.join("\n") %>
  end
  
  # Run the command
  def execute(args)
    # FIX: do something here
    puts "Hello #{args.join(' and ')} from #{program_name}"
  end

end # class <%= cmd_class_name %>
<% if footer %>
if __FILE__ == $0
  <%= cmd_class_name %>.run(ARGV)
end
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quickl-0.2.2 templates/single.erb