2018-08-25 20:25:39 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'thor'
|
|
|
|
require_relative 'mastodon/media_cli'
|
2018-08-26 23:53:06 +09:00
|
|
|
require_relative 'mastodon/emoji_cli'
|
2018-08-27 03:21:03 +09:00
|
|
|
require_relative 'mastodon/accounts_cli'
|
2018-08-25 20:25:39 +09:00
|
|
|
module Mastodon
|
|
|
|
class CLI < Thor
|
2018-08-27 03:21:03 +09:00
|
|
|
desc 'media SUBCOMMAND ...ARGS', 'Manage media files'
|
2018-08-25 20:25:39 +09:00
|
|
|
subcommand 'media', Mastodon::MediaCLI
|
2018-08-26 23:53:06 +09:00
|
|
|
|
2018-08-27 03:21:03 +09:00
|
|
|
desc 'emoji SUBCOMMAND ...ARGS', 'Manage custom emoji'
|
2018-08-26 23:53:06 +09:00
|
|
|
subcommand 'emoji', Mastodon::EmojiCLI
|
2018-08-27 03:21:03 +09:00
|
|
|
|
|
|
|
desc 'accounts SUBCOMMAND ...ARGS', 'Manage accounts'
|
|
|
|
subcommand 'accounts', Mastodon::AccountsCLI
|
2018-08-25 20:25:39 +09:00
|
|
|
end
|
|
|
|
end
|