Class: Abide::CLI::AbideCommand Abstract

Inherits:
CmdParse::Command
  • Object
show all
Includes:
AbideDevUtils::Config
Defined in:
lib/abide_dev_utils/cli/abstract.rb

Overview

This class is abstract.

Constant Summary

Constants included from AbideDevUtils::Config

AbideDevUtils::Config::DEFAULT_PATH

Instance Method Summary collapse

Methods included from AbideDevUtils::Config

config_section, #config_section, fetch, #fetch, to_h, #to_h

Constructor Details

#initialize(cmd_name, cmd_short, cmd_long, **opts) ⇒ AbideCommand

Returns a new instance of AbideCommand.



10
11
12
13
14
15
# File 'lib/abide_dev_utils/cli/abstract.rb', line 10

def initialize(cmd_name, cmd_short, cmd_long, **opts)
  super(cmd_name, **opts)
  short_desc(cmd_short)
  long_desc(cmd_long)
  add_command(CmdParse::HelpCommand.new, default: true) if opts[:takes_commands]
end