Method: Exercism::CLI#current

Defined in:
lib/cli.rb

#currentObject



127
128
129
130
131
132
133
134
135
136
137
# File 'lib/cli.rb', line 127

def current
  require 'exercism'

  result = Exercism::Api.new(options[:host], Exercism.user).current
  body = JSON.parse(result.body)
  puts "Current Assignments"
  body['assignments'].each do |assignment|
    track = assignment['track']
    puts "Language: " + track.ljust(17) + "Exercise: " + assignment['slug']
  end
end