diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-25 13:25:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-25 13:25:39 +0200 |
commit | 793eea29823a44fd4950f87898ecf0ff3b49351d (patch) | |
tree | 3b8f21b5d4fa500d50a3e014140166348c1c1e17 /lib/cli.rb | |
parent | b4fc810bc34eb58e2c9e6c5abb2de2d6d9390a9b (diff) |
Add improved CLI interface for removing remote media (#8411)
./bin/tootctl media remove --days 7 --background Make the old rake task point to it
Diffstat (limited to 'lib/cli.rb')
-rw-r--r-- | lib/cli.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/cli.rb b/lib/cli.rb new file mode 100644 index 000000000..7e82806b6 --- /dev/null +++ b/lib/cli.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'thor' +require_relative 'mastodon/media_cli' + +module Mastodon + class CLI < Thor + desc 'media SUBCOMMAND ...ARGS', 'manage media files' + subcommand 'media', Mastodon::MediaCLI + end +end |