Skip to content

Commit

Permalink
Add expm version CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Oct 14, 2012
1 parent 5abafa7 commit c5c0be8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/cli.ex
Expand Up @@ -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
Expand Down

0 comments on commit c5c0be8

Please sign in to comment.