Skip to content

Commit

Permalink
Add tootctl --version (mastodon#9835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 2764954 commit 9fcc821
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require_relative 'mastodon/feeds_cli'
require_relative 'mastodon/settings_cli'
require_relative 'mastodon/domains_cli'
require_relative 'mastodon/version'

module Mastodon
class CLI < Thor
Expand All @@ -31,5 +32,12 @@ def self.exit_on_failure?

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 comments on commit 9fcc821

Please sign in to comment.