mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-16 20:03:24 +00:00
6f78500d4f
Leave `tootctl accounts cull` to simply check removed accounts from live domains, and skip temporarily unavailable domains, while listing them in the final output for further action. Add `tootctl domains purge DOMAIN` to be able to purge a domain from that list manually
36 lines
1,014 B
Ruby
36 lines
1,014 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'thor'
|
|
require_relative 'mastodon/media_cli'
|
|
require_relative 'mastodon/emoji_cli'
|
|
require_relative 'mastodon/accounts_cli'
|
|
require_relative 'mastodon/feeds_cli'
|
|
require_relative 'mastodon/settings_cli'
|
|
require_relative 'mastodon/domains_cli'
|
|
|
|
module Mastodon
|
|
class CLI < Thor
|
|
def self.exit_on_failure?
|
|
true
|
|
end
|
|
|
|
desc 'media SUBCOMMAND ...ARGS', 'Manage media files'
|
|
subcommand 'media', Mastodon::MediaCLI
|
|
|
|
desc 'emoji SUBCOMMAND ...ARGS', 'Manage custom emoji'
|
|
subcommand 'emoji', Mastodon::EmojiCLI
|
|
|
|
desc 'accounts SUBCOMMAND ...ARGS', 'Manage accounts'
|
|
subcommand 'accounts', Mastodon::AccountsCLI
|
|
|
|
desc 'feeds SUBCOMMAND ...ARGS', 'Manage feeds'
|
|
subcommand 'feeds', Mastodon::FeedsCLI
|
|
|
|
desc 'settings SUBCOMMAND ...ARGS', 'Manage dynamic settings'
|
|
subcommand 'settings', Mastodon::SettingsCLI
|
|
|
|
desc 'domains SUBCOMMAND ...ARGS', 'Manage account domains'
|
|
subcommand 'domains', Mastodon::DomainsCLI
|
|
end
|
|
end
|