Class: Mutant::CLI::Command::Session::Subject Private
- Inherits:
-
SessionCommand
- Object
- Mutant::CLI::Command
- Mutant::CLI::Command::Session
- SessionCommand
- Mutant::CLI::Command::Session::Subject
- Includes:
- Reporter::CLI::Printer::AliveResults
- Defined in:
- lib/mutant/cli/command/session.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Show
Constant Summary collapse
- NAME =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'subject'- SHORT_DESCRIPTION =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'List subjects or show alive mutations for a specific subject'- SUBCOMMANDS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[].freeze
- OPTIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
(superclass::OPTIONS + %i[add_verbose_option]).freeze
- HEADER_FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'%-6s %-6s %s'- ROW_FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'%-6s %-6s %s'
Constants included from Reporter::CLI::Printer::AliveResults
Reporter::CLI::Printer::AliveResults::ALIVE_EXPLANATION
Constants inherited from Mutant::CLI::Command::Session
Instance Method Summary collapse
Methods included from Reporter::CLI::Printer::AliveResults
Methods inherited from SessionCommand
Methods inherited from Mutant::CLI::Command
#call, command_name, #full_name, parse, short_description
Instance Method Details
#parse_remaining_arguments(arguments) ⇒ Object
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.
176 177 178 179 180 181 182 183 184 185 |
# File 'lib/mutant/cli/command/session.rb', line 176 def parse_remaining_arguments(arguments) case arguments.length when 0 then Either::Right.new(self) when 1 @expression = Mutant::Util.one(arguments) Either::Right.new(self) else Either::Left.new('Expected zero or one subject expression argument') end end |