shreddit
shreddit copied to clipboard
[request] - Relative time for --before
When configuring shreddit, a date must be entered in a "correct" format for it to work.
Enabling a relative time format would make it far simpler for a user to run, enabling commands such as shreddit --before "1month" removing anything older than a month.
At the very least, allowing the ability to specify a date only. I am assuming it wants a full date time string?
e.g. shreddit --before 2024-08-14
Did this ever get massaged in? Months/Days etc?
When configuring shreddit, a date must be entered in a "correct" format for it to work.
Enabling a relative time format would make it far simpler for a user to run, enabling commands such as shreddit --before "1month" removing anything older than a month.
hi bro, did some debug. Trythis:
shreddit --username xxx --password xxx --client-id xxx --client-secret xxx --user-agent "xxx" --before="$(date -u --date="2 months ago" +"%Y-%m-%d %H:%M:%S") UTC"
this has been added to the latest release! thanks again @BootsSiR