lib/ayadn/app.rb in ayadn-1.7.7 vs lib/ayadn/app.rb in ayadn-1.8.0

- old
+ new

@@ -364,14 +364,23 @@ long_desc Descriptions.messages option :scroll, aliases: "-s", type: :boolean, desc: "Scroll the stream" option :new, aliases: "-n", type: :boolean, desc: Descriptions.options_new option :count, aliases: "-c", type: :numeric, desc: "Specify the number of messages to retrieve" option :raw, aliases: "-x", type: :boolean, desc: Descriptions.options_raw + option :silent, aliases: "-z", type: :boolean, desc: "Do not mark the channel as read" def messages(channel_id) Action.new.messages(channel_id, options) end + desc "messages_unread", "Show your unread private messages (-pmu)" + map "-pmu" => :messages_unread + option :silent, aliases: "-z", type: :boolean, desc: "Do not mark the channels as read" + long_desc Descriptions.messages_unread + def messages_unread + Action.new.messages_unread(options) + end + desc "pin POST TAG(S)", "Export a post's link and text with tags to Pinboard" long_desc Descriptions.pin def pin(post_id, *tags) Action.new.pin(post_id, tags) end @@ -403,10 +412,11 @@ long_desc Descriptions.pmess option :embed, aliases: "-E", type: :array, desc: "Embed one or several pictures in the new message" option :youtube, aliases: "-Y", type: :array, desc: "Embed a Youtube video in the new message" option :vimeo, aliases: "-V", type: :array, desc: "Embed a Vimeo video in the new message" option :poster, aliases: "-M", type: :array, desc: "Embed a movie poster, from title, in the new message" + option :silent, aliases: "-z", type: :boolean, desc: "Do not mark the channel as read" def pm(*username) Action.new.pmess(username, options) end desc "send CHANNEL", "Send a message to a CHANNEL (-C)" @@ -414,9 +424,10 @@ long_desc Descriptions.send_to_channel option :embed, aliases: "-E", type: :array, desc: "Embed one or several pictures in the new message" option :youtube, aliases: "-Y", type: :array, desc: "Embed a Youtube video in the new message" option :vimeo, aliases: "-V", type: :array, desc: "Embed a Vimeo video in the new message" option :poster, aliases: "-M", type: :array, desc: "Embed a movie poster, from title, in the new message" + option :silent, aliases: "-z", type: :boolean, desc: "Do not mark the channel as read" def send_to_channel(channel_id) Action.new.send_to_channel(channel_id, options) end desc "reply POST", "Reply to post nĀ°POST (-R)"