Sha256: 8c067ff35fb272741d75c2e67f1611a949cfc18ae62e4540471a9f49e609cdb7
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
module HabiticaCli # Responsible for listing tasks module Commands def self.list(env, type = nil) validate_type(type) if type response = env.api.get('user/tasks') if response.success? display(env, response.body, type) else puts 'Error connecting to habit api' 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/list.rb |