Class: Codeball::Commands::Diff

Inherits:
CommandKit::Command
  • Object
show all
Includes:
CommandKit::Colors
Defined in:
lib/codeball/commands/diff.rb

Overview

Diff extracted files against local copies.

Incomplete – diff output is not yet implemented.

Instance Method Summary collapse

Instance Method Details

#run(file = nil) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/codeball/commands/diff.rb', line 29

def run(file = nil)
  input = read_input(file)
  ball = Ball.parse(input)

  ball.each_warning { |msg| stderr.puts colors.yellow("warning: #{msg}") }

  # Diff output not yet implemented
end