Add improved CLI interface for removing remote media (#8411)
./bin/tootctl media remove --days 7 --background Make the old rake task point to it
This commit is contained in:
parent
b4fc810bc3
commit
793eea2982
7 changed files with 68 additions and 11 deletions
11
lib/cli.rb
Normal file
11
lib/cli.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue