Module: Shard::CLI

Defined in:
lib/shard/cli.rb,
lib/shard/cli/fork.rb,
lib/shard/cli/list.rb,
lib/shard/cli/config.rb,
lib/shard/cli/commands.rb

Defined Under Namespace

Classes: Commands, Config, Fork, List

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Object

# Module Methods #

#


14
15
16
17
18
19
20
21
# File 'lib/shard/cli.rb', line 14

def self.start(args)
  if Shard::Ref.valid?(args[0])
    args << "exec" if args.length == 1
    args[0], args[1] = args[1], args[0]
  end

  Commands.start(args)
end