diff options
author | pluralcafe-docker <git@plural.cafe> | 2019-01-21 04:35:29 +0000 |
---|---|---|
committer | pluralcafe-docker <git@plural.cafe> | 2019-01-21 04:35:29 +0000 |
commit | b7c67605d5c2110b4a3cd3d8a7b8ef2878cbfe48 (patch) | |
tree | a3344b6105b7771983f69c789fb2f7a0c22a8583 /lib/cli.rb | |
parent | fb7ec403227690f897a9a693f2461b94bf7e2582 (diff) | |
parent | aa362ab73dc7121104b3c01800152b9fc56ea396 (diff) |
Merge branch 'glitch'
Diffstat (limited to 'lib/cli.rb')
-rw-r--r-- | lib/cli.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/cli.rb b/lib/cli.rb index a810c632a..6036adfbe 100644 --- a/lib/cli.rb +++ b/lib/cli.rb @@ -7,6 +7,7 @@ require_relative 'mastodon/accounts_cli' require_relative 'mastodon/feeds_cli' require_relative 'mastodon/settings_cli' require_relative 'mastodon/domains_cli' +require_relative 'mastodon/version' module Mastodon class CLI < Thor @@ -31,5 +32,12 @@ module Mastodon desc 'domains SUBCOMMAND ...ARGS', 'Manage account domains' subcommand 'domains', Mastodon::DomainsCLI + + map %w(--version -v) => :version + + desc 'version', 'Show version' + def version + say(Mastodon::Version.to_s) + end end end |