Skip to content
Snippets Groups Projects
Unverified Commit 3c218cd7 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Add `tootctl --version` (#9835)

parent 8ec539fe
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment