Module: Elasticshell::Commands

Defined in:
lib/elasticshell/command.rb,
lib/elasticshell/commands/cd.rb,
lib/elasticshell/commands/df.rb,
lib/elasticshell/commands/ls.rb,
lib/elasticshell/commands/pwd.rb,
lib/elasticshell/commands/exit.rb,
lib/elasticshell/commands/help.rb,
lib/elasticshell/commands/blank.rb,
lib/elasticshell/commands/pretty.rb,
lib/elasticshell/commands/connect.rb,
lib/elasticshell/commands/request.rb,
lib/elasticshell/commands/unknown.rb,
lib/elasticshell/commands/set_verb.rb,
lib/elasticshell/commands/request_parser.rb

Defined Under Namespace

Classes: Blank, Cd, Connect, Df, Exit, Help, Ls, Pretty, Pwd, Request, SetVerb, Unknown

Constant Summary collapse

PRIORITY =
[].tap do |priority|
  %w[cd pwd df connect help ls pretty set_verb exit blank request unknown].each do |command_name|
    klass_name = command_name.split("_").map(&:capitalize).join("")
    autoload klass_name.to_sym, "elasticshell/commands/#{command_name}"
    priority << klass_name
  end
end