lib/ayadn/app.rb in ayadn-1.3.2 vs lib/ayadn/app.rb in ayadn-1.4.0

- old
+ new

@@ -345,26 +345,29 @@ end desc "post Your text", "Simple post to App.net (-P)" map "-P" => :post long_desc Descriptions.post + option :embed, aliases: "-e", type: :array, desc: "Embed one or several pictures in the new post" def post(*args) - Action.new.post(args) + Action.new.post(args, options) end desc "write", "Multi-line post to App.net (-W)" map "compose" => :write map "-W" => :write long_desc Descriptions.write + option :embed, aliases: "-e", type: :array, desc: "Embed one or several pictures in the new post" def write - Action.new.write + Action.new.write(options) end desc "pm @USERNAME", "Send a private message to @username" long_desc Descriptions.pmess + option :embed, aliases: "-e", type: :array, desc: "Embed one or several pictures in the new post" def pm(*username) - Action.new.pmess(username) + Action.new.pmess(username, options) end desc "send CHANNEL", "Send a message to a CHANNEL (-C)" map "-C" => :send_to_channel long_desc Descriptions.send_to_channel @@ -373,13 +376,14 @@ end desc "reply POST", "Reply to post nĀ°POST (-R)" map "-R" => :reply long_desc Descriptions.reply + option :embed, aliases: "-e", type: :array, desc: "Embed one or several pictures in the new post" def reply(id) ayadn = Action.new - ayadn.reply(id) + ayadn.reply(id, options) end desc "auto", "Auto post every line of input to App.net" long_desc Descriptions.auto def auto @@ -413,11 +417,12 @@ subcommand "blacklist", Blacklist desc "nowplaying", "Post the current iTunes track (-np)" map "-np" => :nowplaying long_desc Descriptions.nowplaying + option :no_url, type: :boolean, desc: "Don't append preview or album art at the end of the post" def nowplaying - Action.new.nowplaying + Action.new.nowplaying(options) end desc "random", "Show random posts from App.net (-rnd)" map "-rnd" => :random option :wait, aliases: "-w", type: :numeric, desc: "In seconds, time to wait before next page"