Class: Hackpad::Cli::Runner
- Inherits:
-
Thor
- Object
- Thor
- Hackpad::Cli::Runner
- Defined in:
- lib/hackpad/cli/runner.rb
Instance Method Summary collapse
- #add ⇒ Object
- #default ⇒ Object
- #getnew ⇒ Object
- #info(pad) ⇒ Object
- #list ⇒ Object
- #search(term) ⇒ Object
- #show(pad, format = 'txt') ⇒ Object
- #stats ⇒ Object
- #version ⇒ Object
- #workspaces ⇒ Object
Instance Method Details
#add ⇒ Object
51 52 53 |
# File 'lib/hackpad/cli/runner.rb', line 51 def add Hackpad::Cli::Client.new().add end |
#default ⇒ Object
56 57 58 |
# File 'lib/hackpad/cli/runner.rb', line 56 def default Hackpad::Cli::Client.new().default end |
#getnew ⇒ Object
80 81 82 |
# File 'lib/hackpad/cli/runner.rb', line 80 def getnew Hackpad::Cli::Client.new().getnew end |
#info(pad) ⇒ Object
85 86 87 |
# File 'lib/hackpad/cli/runner.rb', line 85 def info(pad) Hackpad::Cli::Client.new().info pad end |
#list ⇒ Object
74 75 76 |
# File 'lib/hackpad/cli/runner.rb', line 74 def list Hackpad::Cli::Client.new().list end |
#search(term) ⇒ Object
67 68 69 |
# File 'lib/hackpad/cli/runner.rb', line 67 def search(term) Hackpad::Cli::Client.new().search term end |
#show(pad, format = 'txt') ⇒ Object
91 92 93 |
# File 'lib/hackpad/cli/runner.rb', line 91 def show(pad, format = 'txt') Hackpad::Cli::Client.new().show pad, format end |
#stats ⇒ Object
61 62 63 |
# File 'lib/hackpad/cli/runner.rb', line 61 def stats Hackpad::Cli::Client.new().stats end |
#version ⇒ Object
96 97 98 |
# File 'lib/hackpad/cli/runner.rb', line 96 def version puts File.read(File.('../../../../CHANGELOG.md', __FILE__))[/([0-9]+\.[0-9]+\.[0-9]+)/] end |
#workspaces ⇒ Object
46 47 48 |
# File 'lib/hackpad/cli/runner.rb', line 46 def workspaces Hackpad::Cli::Client.new().workspaces end |