Class: Mooncell::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/mooncell/cli.rb,
lib/mooncell/cli/commands.rb,
lib/mooncell/cli/commands/base.rb,
lib/mooncell/cli/commands/server.rb,
lib/mooncell/cli/commands/console.rb,
lib/mooncell/cli/commands/version.rb,
lib/mooncell/cli/commands/registry.rb

Overview

Command Line Interface

Since:

  • 0.1.0

Defined Under Namespace

Modules: Commands

Instance Method Summary collapse

Instance Method Details

#callObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



8
9
10
11
12
13
14
# File 'lib/mooncell/cli.rb', line 8

def call
  command = Commands.get(ARGV)
  # TODO: Display help message
  return if command.nil?

  command.call(ARGV)
end