lib/ayadn/app.rb in ayadn-1.4.6 vs lib/ayadn/app.rb in ayadn-1.5.0
- old
+ new
@@ -3,10 +3,13 @@
class App < Thor
package_name "Ayadn"
%w{action api descriptions endpoints cnx view workers settings post status extend databases fileops logs pinboard set alias errors blacklist scroll authorize switch mark nicerank debug}.each { |r| require_relative "#{r}" }
+ ##
+ # These methods are intended to be called from the CLI.
+
desc "timeline", "Show your App.net timeline, aka the Unified Stream (-tl)"
map "unified" => :timeline
map "-tl" => :timeline
long_desc Descriptions.unified
option :scroll, aliases: "-s", type: :boolean, desc: "Scroll the stream"
@@ -453,14 +456,10 @@
end
desc "version", "Show the current Ayadn version (-v)"
map "-v" => :version
def version
- puts "\nAYADN\n".color(:red)
- puts "Version:\t".color(:cyan) + "#{VERSION}\n".color(:green)
- puts "Changelog:\t".color(:cyan) + "https://github.com/ericdke/na/blob/master/CHANGELOG.md\n".color(:yellow)
- puts "Docs:\t\t".color(:cyan) + "http://ayadn-app.net/doc/".color(:yellow)
- puts "\n"
+ Action.new.version
end
end
end