Module: Mutant::CLI Private

Defined in:
lib/mutant/cli.rb,
lib/mutant/cli/command.rb,
lib/mutant/cli/command/root.rb,
lib/mutant/cli/command/util.rb,
lib/mutant/cli/command/environment.rb,
lib/mutant/cli/command/subscription.rb,
lib/mutant/cli/command/environment/irb.rb,
lib/mutant/cli/command/environment/run.rb,
lib/mutant/cli/command/environment/show.rb,
lib/mutant/cli/command/environment/test.rb,
lib/mutant/cli/command/environment/subject.rb

Overview

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

Commandline interface

Defined Under Namespace

Classes: Command

Class Method Summary collapse

Class Method Details

.parse(world:, **attributes) ⇒ Command

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.

Parse command

Returns:



9
10
11
12
13
# File 'lib/mutant/cli.rb', line 9

def self.parse(world:, **attributes)
  Command::Root
    .parse(world: world, **attributes)
    .from_right { |message| Command::FailParse.new(world, message) }
end