]> cat aescling's git repositories - mastodon.git/commit
Add `tootctl media lookup` command (#12283)
authorNathaniel Suchy <me@lunorian.is>
Mon, 4 Nov 2019 11:55:20 +0000 (06:55 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 4 Nov 2019 11:55:20 +0000 (12:55 +0100)
commit23ed9303b890f07715b7afaf0e1a18c13e40ea15
tree96cfd1c0880d93cb589dd3af2907b7c053131eee
parent71cd41aebf4fcb988d847dcd7eae6fae2ce495a6
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
lib/mastodon/media_cli.rb