lib/ayadn/app.rb in ayadn-2.0.9 vs lib/ayadn/app.rb in ayadn-2.0.10

- old
+ new

@@ -139,30 +139,36 @@ option :count, aliases: "-c", type: :numeric, desc: Descriptions.options_count option :index, aliases: "-i", type: :boolean, desc: Descriptions.options_index option :raw, aliases: "-x", type: :boolean, desc: Descriptions.options_raw option :extract, aliases: "-e", type: :boolean, desc: Descriptions.options_extract option :compact, aliases: "-k", type: :boolean, desc: "Force the view to be compact if not already" + option :cache, type: :boolean, desc: "Cache the results" + option :again, type: :boolean, desc: "Run the last request from cache" def whatstarred(*username) Action.new.whatstarred(username, options) end desc "whoreposted POST", "List users who reposted a post (-wor)" map "-wor" => :whoreposted long_desc Descriptions.whoreposted option :raw, aliases: "-x", type: :boolean, desc: Descriptions.options_raw option :force, aliases: "-f", type: :boolean, desc: "Force retrieve the actual post id (ignores index)" option :compact, aliases: "-k", type: :boolean, desc: "Force the view to be compact if not already" + option :cache, type: :boolean, desc: "Cache the results" + option :again, type: :boolean, desc: "Run the last request from cache" def whoreposted(post_id) Action.new.whoreposted(post_id, options) end desc "whostarred POST", "List users who starred a post (-wos)" map "-wos" => :whostarred long_desc Descriptions.whostarred option :raw, aliases: "-x", type: :boolean, desc: Descriptions.options_raw option :force, aliases: "-f", type: :boolean, desc: "Force retrieve the actual post id (ignores index)" option :compact, aliases: "-k", type: :boolean, desc: "Force the view to be compact if not already" + option :cache, type: :boolean, desc: "Cache the results" + option :again, type: :boolean, desc: "Run the last request from cache" def whostarred(post_id) Action.new.whostarred(post_id, options) end desc "convo POST", "Show the conversation thread around a post (-co)" @@ -188,10 +194,12 @@ option :posts_day, aliases: "-d", type: :boolean, desc: "Sort the list by: posts/day" option :posts, aliases: "-p", type: :boolean, desc: "Sort the list by: total posts" option :date, aliases: "-t", type: :boolean, desc: "Sort the list by: date (only with 'lastposts' option)" option :compact, aliases: "-k", type: :boolean, desc: "Force the view to be compact if not already" option :lastpost, aliases: "-l", type: :boolean, desc: "Displays the last post of each user" + option :cache, type: :boolean, desc: "Cache the results" + option :again, type: :boolean, desc: "Run the last request from cache" def followings(*username) Action.new.followings(username, options) end desc "followers @USERNAME", "List users following @username (-fwr)" @@ -202,10 +210,12 @@ option :username, aliases: "-u", type: :boolean, desc: "Sort the list by: username" option :name, aliases: "-n", type: :boolean, desc: "Sort the list by: name" option :posts_day, aliases: "-d", type: :boolean, desc: "Sort the list by: posts/day" option :posts, aliases: "-p", type: :boolean, desc: "Sort the list by: total posts" option :compact, aliases: "-k", type: :boolean, desc: "Force the view to be compact if not already" + option :cache, type: :boolean, desc: "Cache the results" + option :again, type: :boolean, desc: "Run the last request from cache" def followers(*username) Action.new.followers(username, options) end desc "muted", "List the users you muted (-mtd)" @@ -216,10 +226,12 @@ option :username, aliases: "-u", type: :boolean, desc: "Sort the list by: username" option :name, aliases: "-n", type: :boolean, desc: "Sort the list by: name" option :posts_day, aliases: "-d", type: :boolean, desc: "Sort the list by: posts/day" option :posts, aliases: "-p", type: :boolean, desc: "Sort the list by: total posts" option :compact, aliases: "-k", type: :boolean, desc: "Force the view to be compact if not already" + option :cache, type: :boolean, desc: "Cache the results" + option :again, type: :boolean, desc: "Run the last request from cache" def muted Action.new.muted(options) end desc "blocked", "List the users you blocked (-bkd)" @@ -230,9 +242,11 @@ option :username, aliases: "-u", type: :boolean, desc: "Sort the list by: username" option :name, aliases: "-n", type: :boolean, desc: "Sort the list by: name" option :posts_day, aliases: "-d", type: :boolean, desc: "Sort the list by: posts/day" option :posts, aliases: "-p", type: :boolean, desc: "Sort the list by: total posts" option :compact, aliases: "-k", type: :boolean, desc: "Force the view to be compact if not already" + option :cache, type: :boolean, desc: "Cache the results" + option :again, type: :boolean, desc: "Run the last request from cache" def blocked Action.new.blocked(options) end desc "hashtag HASHTAG", "Show recent posts containing #HASHTAG (-t)"