lib/hackpad/cli/runner.rb in hackpad-cli-0.1.0 vs lib/hackpad/cli/runner.rb in hackpad-cli-0.1.1
- old
+ new
@@ -41,10 +41,20 @@
default: false,
desc: "Add this if you don't want colors."
default_task :help
+ desc 'workspaces', 'Lists configurated hackpad workspaces.'
+ def workspaces
+ Hackpad::Cli::Client.new(options).workspaces
+ end
+
+ desc 'default', 'change the default workspace.'
+ def default
+ Hackpad::Cli::Client.new(options).default
+ end
+
desc 'stats', 'Lists configuration values.'
def stats
Hackpad::Cli::Client.new(options).stats
end
@@ -59,14 +69,14 @@
method_option(*url_option)
def list
Hackpad::Cli::Client.new(options).list
end
- desc 'check', 'Checks differences between local cache and remote list (options: -u to show urls).'
+ desc 'getnew', 'Downloads the new pads the are not cached yet (options: -u to show urls).'
method_option(*url_option)
- def check
- Hackpad::Cli::Client.new(options).check
+ def getnew
+ Hackpad::Cli::Client.new(options).getnew
end
desc 'info [pad_id]', 'gets info for the pad <pad_id>.'
def info(pad)
Hackpad::Cli::Client.new(options).info pad
@@ -79,15 +89,9 @@
end
desc 'version', 'Displays the hackpad-cli version.'
def version
puts Hackpad::Cli::VERSION
- end
-
- desc 'colors', 'displays colorize color matrix.', hide: true
- def colors
- require 'colorize'
- String.color_matrix ' xoxo '
end
end
end
end