Sha256: 28f67a33b3c9dd993da86430d3ac43f624d2fff1eebcddb6b766b9cc692df741

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

module HabiticaCli
  # Clear completed tasks
  # to slim down output
  module Commands
    def self.clear(env)
      env.api.post('user/tasks/clear-completed')
      if response.success?
        puts 'Tasks cleared'
      else
        puts "Error #{response.body}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
habitica_cli-0.0.1 lib/habitica_cli/commands/clear.rb