Class: Abt::Cli::GlobalCommands::Examples

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/abt/cli/global_commands/examples.rb

Instance Attribute Summary collapse

Attributes inherited from BaseCommand

#ari, #flags

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

flags, #initialize

Constructor Details

This class inherits a constructor from Abt::BaseCommand

Instance Attribute Details

#cliObject (readonly)

Returns the value of attribute cli.



15
16
17
# File 'lib/abt/cli/global_commands/examples.rb', line 15

def cli
  @cli
end

Class Method Details

.descriptionObject



11
12
13
# File 'lib/abt/cli/global_commands/examples.rb', line 11

def self.description
  "Print command examples"
end

.usageObject



7
8
9
# File 'lib/abt/cli/global_commands/examples.rb', line 7

def self.usage
  "abt examples"
end

Instance Method Details

#performObject



17
18
19
# File 'lib/abt/cli/global_commands/examples.rb', line 17

def perform
  puts(Abt::Docs::Cli.examples)
end