Class: Evilution::CLI::Command Private
- Inherits:
-
Object
- Object
- Evilution::CLI::Command
- Defined in:
- lib/evilution/cli/command.rb
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.
Direct Known Subclasses
Evilution::CLI::Commands::Compare, Evilution::CLI::Commands::EnvironmentShow, Evilution::CLI::Commands::Init, Evilution::CLI::Commands::Mcp, Evilution::CLI::Commands::Run, Evilution::CLI::Commands::SessionDiff, Evilution::CLI::Commands::SessionGc, Evilution::CLI::Commands::SessionList, Evilution::CLI::Commands::SessionShow, Evilution::CLI::Commands::Subjects, Evilution::CLI::Commands::TestsList, Evilution::CLI::Commands::UtilMutation, Evilution::CLI::Commands::Version
Instance Method Summary collapse
- #call ⇒ Object private
-
#initialize(parsed_args, stdout: $stdout, stderr: $stderr) ⇒ Command
constructor
private
A new instance of Command.
Constructor Details
#initialize(parsed_args, stdout: $stdout, stderr: $stderr) ⇒ 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.
Returns a new instance of Command.
6 7 8 9 10 11 12 13 |
# File 'lib/evilution/cli/command.rb', line 6 def initialize(parsed_args, stdout: $stdout, stderr: $stderr) @options = parsed_args. @files = parsed_args.files @line_ranges = parsed_args.line_ranges @stdin_error = parsed_args.stdin_error @stdout = stdout @stderr = stderr end |
Instance Method Details
#call ⇒ 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.
15 16 17 18 19 |
# File 'lib/evilution/cli/command.rb', line 15 def call Evilution::CLI::Result.new(exit_code: perform) rescue Evilution::Error => e Evilution::CLI::Result.new(exit_code: 2, error: e) end |