about summary refs log tree commit diff
path: root/lib/cli.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-09-14 17:42:22 +0200
committerGitHub <noreply@github.com>2018-09-14 17:42:22 +0200
commit6a3f9b7e53e4cef0b5406676d56e904a02716ee6 (patch)
treea2bffb6c09262d4fb29ac406095824635fd14172 /lib/cli.rb
parent1d8b693d31512b25f90d63b5d879d97dba4044fe (diff)
Move more tasks to tootctl (#8675)
* Move more tasks to tootctl

- tootctl feeds build
- tootctl feeds clear
- tootctl accounts refresh

Clean up exit codes and help messages

* Move user modifying to tootctl

* Improve user modification through CLI, rename commands

add -> create
mod -> modify
del -> delete

To remove ambiguity

* Fix code style issues

* Fix not being able to unset admin/mod role
Diffstat (limited to 'lib/cli.rb')
-rw-r--r--lib/cli.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/cli.rb b/lib/cli.rb
index 60bff4147..14a91c2db 100644
--- a/lib/cli.rb
+++ b/lib/cli.rb
@@ -4,6 +4,8 @@ require 'thor'
 require_relative 'mastodon/media_cli'
 require_relative 'mastodon/emoji_cli'
 require_relative 'mastodon/accounts_cli'
+require_relative 'mastodon/feeds_cli'
+
 module Mastodon
   class CLI < Thor
     desc 'media SUBCOMMAND ...ARGS', 'Manage media files'
@@ -14,5 +16,8 @@ module Mastodon
 
     desc 'accounts SUBCOMMAND ...ARGS', 'Manage accounts'
     subcommand 'accounts', Mastodon::AccountsCLI
+
+    desc 'feeds SUBCOMMAND ...ARGS', 'Manage feeds'
+    subcommand 'feeds', Mastodon::FeedsCLI
   end
 end