lib/hackpad/cli.rb in hackpad-cli-0.0.3 vs lib/hackpad/cli.rb in hackpad-cli-0.0.4

- old
+ new

@@ -17,16 +17,21 @@ default: "default", desc: "Name of the workspace to use." default_task :help + desc "search [term]", "Lists available pads matching [term]." + def search(term) + Hackpad::Client.new(options).search term + end + desc "list", "Lists available pads." def list Hackpad::Client.new(options).listall end desc "getinfo [pad_id]", "gets info for the pad <pad_id>." - def getinfo(pad) + def info(pad) Hackpad::Client.new(options).getinfo pad end desc "show [pad_id] [format]", "shows pad <pad_id> in format [html,txt,md] (default txt)." def show(pad,format='txt')