2018-08-25 13:25:39 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'thor'
|
|
|
|
require_relative 'mastodon/media_cli'
|
2018-08-26 16:53:06 +02:00
|
|
|
require_relative 'mastodon/emoji_cli'
|
2018-08-26 20:21:03 +02:00
|
|
|
require_relative 'mastodon/accounts_cli'
|
2018-09-14 17:42:22 +02:00
|
|
|
require_relative 'mastodon/feeds_cli'
|
2018-10-04 16:05:54 +02:00
|
|
|
require_relative 'mastodon/settings_cli'
|
2018-09-14 17:42:22 +02:00
|
|
|
|
2018-08-25 13:25:39 +02:00
|
|
|
module Mastodon
|
|
|
|
class CLI < Thor
|
2018-10-25 16:05:33 +02:00
|
|
|
def self.exit_on_failure?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
2018-08-26 20:21:03 +02:00
|
|
|
desc 'media SUBCOMMAND ...ARGS', 'Manage media files'
|
2018-08-25 13:25:39 +02:00
|
|
|
subcommand 'media', Mastodon::MediaCLI
|
2018-08-26 16:53:06 +02:00
|
|
|
|
2018-08-26 20:21:03 +02:00
|
|
|
desc 'emoji SUBCOMMAND ...ARGS', 'Manage custom emoji'
|
2018-08-26 16:53:06 +02:00
|
|
|
subcommand 'emoji', Mastodon::EmojiCLI
|
2018-08-26 20:21:03 +02:00
|
|
|
|
|
|
|
desc 'accounts SUBCOMMAND ...ARGS', 'Manage accounts'
|
|
|
|
subcommand 'accounts', Mastodon::AccountsCLI
|
2018-09-14 17:42:22 +02:00
|
|
|
|
|
|
|
desc 'feeds SUBCOMMAND ...ARGS', 'Manage feeds'
|
|
|
|
subcommand 'feeds', Mastodon::FeedsCLI
|
2018-10-04 16:05:54 +02:00
|
|
|
|
|
|
|
desc 'settings SUBCOMMAND ...ARGS', 'Manage dynamic settings'
|
|
|
|
subcommand 'settings', Mastodon::SettingsCLI
|
2018-08-25 13:25:39 +02:00
|
|
|
end
|
|
|
|
end
|