Eugen Rochko
7e7613ec9c
Fix tootctl media remove-orphans
choking on unknown files in storage ( #13765 )
...
Fix #13762
Catch tootctl interrupt to prevent confusing stacktrace
2020-05-15 18:41:27 +02:00
Takeshi Umeda
27a938101c
Fix tootctl media refresh ( #13751 )
2020-05-14 07:45:52 +02:00
ThibG
b7f47014a7
Fix "tootctl media remove-orphans" crashing on “Import” files ( #13685 )
...
* Fix "tootctl media remove-orphans" crashing on “Import” files
* Also remove empty directories when removing orphaned media
2020-05-09 21:06:55 +02:00
Eugen Rochko
adfb22a9dd
Add separate cache directory for non-local uploads ( #12821 )
2020-04-26 23:29:08 +02:00
Eugen Rochko
ccee0578a4
Fix regression in tootctl media remove-orphans
( #13405 )
...
Fix #13401
2020-04-06 14:11:47 +02:00
Eugen Rochko
7045cb5d5c
Fix tootctl media remove-orphans
ignoring PAPERCLIP_ROOT_PATH
( #13375 )
...
Fix #13371
2020-04-02 05:28:51 +02:00
Eugen Rochko
1cb4645638
Change tootctl media remove-orphans
to work for all classes ( #13316 )
...
Change `tootctl media lookup` to not use an interactive prompt
2020-03-26 01:56:41 +01:00
Eugen Rochko
fa15a5e9f2
Fix error handling in tootctl media remove-orphans
( #12571 )
2019-12-09 04:26:00 +01:00
Eugen Rochko
0769ef8277
Add tootctl media remove-orphans
( #12568 )
2019-12-08 15:37:12 +01:00
Nathaniel Suchy
8ae8e9268e
Add tootctl media lookup
command ( #12283 )
...
* Add a lookup tool to the media cli
* Improved lookup logic
* Clarified wording in the output
* Code style changes
* Code style changes
* Code style changes
* Code style changes
* Add error handling code incase an attachment isn't found
* Code style changes
* Code style changes
* Make requested changes
* Fix styling issues
* Handle other media types
* Remove an inadvertently added log
* Make requested changes
* Make the code safe no matter what the path, S3 or not
* Code style changes
* Code style changes
* Replace select method with Ruby Enumerable grep method
2019-11-04 12:55:20 +01:00
Eugen Rochko
347c82efed
Change tootctl media refresh
to skip already downloaded attachments ( #12118 )
2019-10-08 05:59:10 +02:00
Eugen Rochko
c47d7b8abf
Add tootctl media usage
command ( #12115 )
2019-10-07 20:04:56 +02:00
Eugen Rochko
8eab4349b4
Add retry for failed media downloads and tootctl media refresh
( #11775 )
2019-09-10 15:29:12 +02:00
Eugen Rochko
666c1a8a06
Change tootctl to use inline parallelization instead of Sidekiq ( #11776 )
...
- Remove --background option
- Add --concurrency(=5) option
- Add progress bars
2019-09-10 13:48:48 +02:00
mayaeh
214aab8715
Fix "tootctl media remove" can't count the file size ( #9288 )
...
* Fixed an issue where "tootctl media remove" can not count the file size.
* Fixed the problem pointed out by codeclimate.
2018-11-16 09:47:40 +01:00
Eugen Rochko
eed84cacba
Fix nil error regression from #9229 in tootctl media remove ( #9239 )
...
Fix #9237
2018-11-08 21:55:59 +01:00
Eugen Rochko
a178e66988
Display amount of freed disk space in tootctl media remove ( #9229 )
...
* Display amount of freed disk space in tootctl media remove
Fix #9213
* Fix code style issue
2018-11-08 21:06:26 +01:00
Eugen Rochko
f435af86e7
Do not remove "dead" domains in tootctl accounts cull ( #9108 )
...
Leave `tootctl accounts cull` to simply check removed accounts from
live domains, and skip temporarily unavailable domains, while listing
them in the final output for further action.
Add `tootctl domains purge DOMAIN` to be able to purge a domain from
that list manually
2018-10-27 22:56:16 +02:00
Sascha
94b16add64
cli: set exit_on_failure for all CLI classes ( #9094 )
2018-10-25 16:05:33 +02:00
Eugen Rochko
26d73847cb
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
2018-09-14 17:42:22 +02:00
mayaeh
6823e24a9d
Add --verbose and --dry-run option to tootctl media remove ( #8519 )
...
* Add --verbose and --dry-run options to CLI interface for removing remote media.
* Fix coding style problem.
2018-08-31 03:46:13 +02:00
mayaeh
2adac68cc7
Fix CLI interface for removing remote media ( #8506 )
...
* Fix that can't delete media files even if "tootctl media remove" execute when "--background" not attached.
* Revert
This reverts commit 5aa7e09645b27bae38a26030148b23e553ee2662.
* Change to obtain and pass all columns when "--background" option is false.
2018-08-29 18:35:09 +02:00
Eugen Rochko
1d319c531e
Add CLI task for rotating keys ( #8466 )
...
* If an Update is signed with known key, skip re-following procedure
Because it means the remote actor did *not* lose their database
* Add CLI method for rotating keys
bin/tootctl accounts rotate [USERNAME]
Generates a new RSA key per account and sends out an Update activity
signed with the old key.
* Key rotation: Space out Update fan-outs every 5 minutes per 1000 accounts
* Skip suspended accounts in key rotation
2018-08-26 20:21:03 +02:00
Eugen Rochko
7271a40d09
Add CLI interface for importing custom emoji ( #8437 )
...
bin/tootctl emoji import PATH_TO_TAR
Fix #8435
2018-08-26 16:53:06 +02:00
Eugen Rochko
e6e845f74d
Add improved CLI interface for removing remote media ( #8411 )
...
./bin/tootctl media remove --days 7 --background
Make the old rake task point to it
2018-08-25 13:25:39 +02:00