Module: Acclaim::Command::DSL::Root

Included in:
Acclaim::Command::DSL
Defined in:
lib/acclaim/command/dsl/root.rb

Overview

Methods that only work with root commands.

Author:

  • Matheus Afonso Martins Moreira

Since:

  • 0.4.0

Instance Method Summary collapse

Instance Method Details

#help(*arguments, &block) ⇒ Object

Adds help subcommand and options to this command.

See Also:

Since:

  • 0.4.0



21
22
23
# File 'lib/acclaim/command/dsl/root.rb', line 21

def help(*arguments, &block)
  Help.create root, *arguments, &block
end

#version(*arguments, &block) ⇒ Object

Adds version subcommand and options to this command.

See Also:

Since:

  • 0.4.0



28
29
30
# File 'lib/acclaim/command/dsl/root.rb', line 28

def version(*arguments, &block)
  Version.create root, *arguments, &block
end