Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Add tootctl --version (mastodon#9835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Jan 17, 2019
1 parent 8ec539f commit 3c218cd
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 3c218cd

Please sign in to comment.