Class: Escalator::Command

Inherits:
CLAide::Command
  • Object
show all
Defined in:
lib/escalator/command.rb,
lib/escalator/command/setup.rb,
lib/escalator/command/resign.rb,
lib/escalator/command/upload.rb,
lib/escalator/command/archive.rb,
lib/escalator/command/combine.rb,
lib/escalator/command/confuse.rb

Direct Known Subclasses

Archive, Combine, Confuse, Resign, Setup, Upload

Defined Under Namespace

Classes: Archive, Combine, Confuse, Resign, Setup, Upload

Constant Summary collapse

DEFAULT_ROOT_OPTIONS =
[
  ['--version', '仅输出工具版本号, 默认: 否'],
]
DEFAULT_OPTIONS =
[
  ['--verbose', '输出更多调试信息, 默认: 否'],
  ['--no-ansi', '关闭高亮输出模式, 默认: 否'],
  ['--help',    '仅输出指定命令的帮助文档, 默认: 否'],
]

Class Method Summary collapse

Class Method Details

.optionsObject



36
37
38
39
40
41
42
# File 'lib/escalator/command.rb', line 36

def self.options
  if root_command?
    DEFAULT_ROOT_OPTIONS + DEFAULT_OPTIONS
  else
    DEFAULT_OPTIONS
  end
end