binary now shows version number when requested
This commit is contained in:
parent
bab8d77556
commit
3352e3d6d4
1 changed files with 13 additions and 0 deletions
13
bin/ebooks
13
bin/ebooks
|
@ -28,6 +28,7 @@ Usage:
|
||||||
ebooks gen <model_path> [input]
|
ebooks gen <model_path> [input]
|
||||||
ebooks archive <username> [path]
|
ebooks archive <username> [path]
|
||||||
ebooks tweet <model_path> <botname>
|
ebooks tweet <model_path> <botname>
|
||||||
|
ebooks version
|
||||||
STR
|
STR
|
||||||
|
|
||||||
def self.help(command=nil)
|
def self.help(command=nil)
|
||||||
|
@ -275,6 +276,17 @@ STR
|
||||||
require 'pry'; Ebooks.module_exec { pry }
|
require 'pry'; Ebooks.module_exec { pry }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
HELP.version = <<-STR
|
||||||
|
Usage: ebooks version
|
||||||
|
|
||||||
|
Shows you twitter_ebooks' version number.
|
||||||
|
STR
|
||||||
|
|
||||||
|
def self.version
|
||||||
|
require File.expand_path('../../lib/twitter_ebooks/version', __FILE__)
|
||||||
|
log Ebooks::VERSION
|
||||||
|
end
|
||||||
|
|
||||||
HELP.start = <<-STR
|
HELP.start = <<-STR
|
||||||
Usage: ebooks s[tart] [botname]
|
Usage: ebooks s[tart] [botname]
|
||||||
|
|
||||||
|
@ -378,6 +390,7 @@ STR
|
||||||
when "start" then start(args[1])
|
when "start" then start(args[1])
|
||||||
when "s" then start(args[1])
|
when "s" then start(args[1])
|
||||||
when "help" then help(args[1])
|
when "help" then help(args[1])
|
||||||
|
when "version" then version
|
||||||
else
|
else
|
||||||
log "No such command '#{args[0]}'"
|
log "No such command '#{args[0]}'"
|
||||||
help
|
help
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue