Permalink
Browse files

Add expm version CLI command

  • Loading branch information...
1 parent 5abafa7 commit c5c0be86da4c995ab3fdfb36a477e31c336261ea @yrashk committed Oct 14, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/cli.ex
View
@@ -318,6 +318,16 @@ defrecord Expm.CLI, repository: Expm.Repository.HTTP.new.url, username: nil, pas
end
end
+ @shortdoc "Version"
+ @doc """
+ $ expm version
+
+ Prints expm version
+ """
+ command(["version"], _rec) do
+ IO.puts Expm.version
+ end
+
def run(_, rec) do
run(["help"], rec)
end

0 comments on commit c5c0be8

Please sign in to comment.