瀏覽代碼

Add `tootctl --version` (#9835)

master
Eugen Rochko 5 年之前
committed by GitHub
父節點
當前提交
3c218cd76d
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. +8
    -0
      lib/cli.rb

+ 8
- 0
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

Loading…
取消
儲存