Class: Hackpad::Cli::Runner
- Inherits:
-
Thor
- Object
- Thor
- Hackpad::Cli::Runner
- Defined in:
- lib/hackpad/cli/runner.rb
Instance Method Summary collapse
- #check ⇒ Object
- #colors ⇒ Object
- #info(pad) ⇒ Object
- #list ⇒ Object
- #search(term) ⇒ Object
- #show(pad, format = 'txt') ⇒ Object
- #stats ⇒ Object
- #version ⇒ Object
Instance Method Details
#check ⇒ Object
66 67 68 |
# File 'lib/hackpad/cli/runner.rb', line 66 def check Hackpad::Cli::Client.new().check end |
#colors ⇒ Object
87 88 89 90 |
# File 'lib/hackpad/cli/runner.rb', line 87 def colors require 'colorize' String.color_matrix ' xoxo ' end |
#info(pad) ⇒ Object
71 72 73 |
# File 'lib/hackpad/cli/runner.rb', line 71 def info(pad) Hackpad::Cli::Client.new().info pad end |
#list ⇒ Object
60 61 62 |
# File 'lib/hackpad/cli/runner.rb', line 60 def list Hackpad::Cli::Client.new().list end |
#search(term) ⇒ Object
53 54 55 |
# File 'lib/hackpad/cli/runner.rb', line 53 def search(term) Hackpad::Cli::Client.new().search term end |
#show(pad, format = 'txt') ⇒ Object
77 78 79 |
# File 'lib/hackpad/cli/runner.rb', line 77 def show(pad, format = 'txt') Hackpad::Cli::Client.new().show pad, format end |
#stats ⇒ Object
47 48 49 |
# File 'lib/hackpad/cli/runner.rb', line 47 def stats Hackpad::Cli::Client.new().stats end |
#version ⇒ Object
82 83 84 |
# File 'lib/hackpad/cli/runner.rb', line 82 def version puts Hackpad::Cli::VERSION end |