Class: Rosette::Client::Commands::DiffCommand
- Defined in:
- lib/rosette/client/commands/diff_command.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Command
#api, #args, #repo, #terminal, #writer
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Rosette::Client::Commands::Command
Instance Method Details
#execute ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rosette/client/commands/diff_command.rb', line 44 def execute response = api.diff( repo_name: derive_repo_name, head_ref: args.head_ref, diff_point_ref: args.diff_point_ref, paths: args.paths.join(' ') ) handle_error(response) do |response| print_diff(response.attributes) end end |