Sha256: bb2fddd34f683b73cc0b1c8e0113c730630532a7269bc72625a07a7d494a8971

Contents?: true

Size: 1.08 KB

Versions: 30

Compression:

Stored size: 1.08 KB

Contents

# This file serves as a template for adding new commands.
# For more inspiration, see already implemented commands.

# Since commands can be invoked by only typing their first letters, please try
# to find a command name that has a unique prefix.

desc 'command ARG [OPTIONAL]', 'one-line description'
long_desc <<-LONGDESC # optional
Start with an example: `command bla bla`

Detailed description with anything the user needs to know.

Short and long description are printed on the console AND included in the README
by `rake update_readme`. Thus, please format descriptions in a way that's reader
friendly both in Markdown and the console.
LONGDESC

option :opt, :type => :boolean, :aliases => '-o', :banner => 'VALUE_NAME',
       :desc => 'If set, VALUE_NAME will be used for something'

def example
  # Invoke other commands like this:
  invoke_cmd 'other_command', 'argument', :an => 'option'

  fail 'Option missing' unless options.opt?

  # For formatted output, see geordi/interaction.rb
  success 'Done.'
end

# Command mappings, usually not needed
map 'beispiel' => 'example'
map '-E' => 'example'

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
geordi-2.12.3 lib/geordi/COMMAND_TEMPLATE
geordi-2.12.2 lib/geordi/COMMAND_TEMPLATE
geordi-2.12.1 lib/geordi/COMMAND_TEMPLATE
geordi-2.12.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.11.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.10.1 lib/geordi/COMMAND_TEMPLATE
geordi-2.10.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.9.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.8.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.7.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.6.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.5.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.4.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.3.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.2.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.1.0 lib/geordi/COMMAND_TEMPLATE
geordi-2.0.0 lib/geordi/COMMAND_TEMPLATE
geordi-1.10.0 lib/geordi/COMMAND_TEMPLATE
geordi-1.9.1 lib/geordi/COMMAND_TEMPLATE
geordi-1.9.0 lib/geordi/COMMAND_TEMPLATE