Open NathanUrwin opened 3 years ago
I'd need to store the options invoked initially somewhere and then read those options back, but I agree this would be a handy feature. I've been meaning to give users a way of seeing when they invoked the command as well, as sometimes changes/etc require a fresh command to roll out. An updated print out like:
~> brew autoupdate --status [~]
Autoupdate is installed and running.
Autoupdate is scheduled to update every 43200 seconds.
Autoupdate was last invoked on 01/01/20 with the options:
--start --enable-notifications
Would probably be alright. I'll look into it. Thanks for the issue, and I'm glad you're finding this project useful! 😺
I'd need to store the options invoked initially somewhere and then read those options back, but I agree this would be a handy feature. I've been meaning to give users a way of seeing when they invoked the command as well, as sometimes changes/etc require a fresh command to roll out. An updated print out like:
~> brew autoupdate --status [~] Autoupdate is installed and running. Autoupdate is scheduled to update every 43200 seconds. Autoupdate was last invoked on 01/01/20 with the options: --start --enable-notifications
Would probably be alright. I'll look into it. Thanks for the issue, and I'm glad you're finding this project useful! 😺
You are already storing all the information you need in the .plist
and the homebrew_autoupdate
files.
I will try to parse the content from these files in the status
class, so we can to output the requested information when the command is invoked.
I've already implemented --immediate
and interval
on my fork: https://github.com/swissbuechi/homebrew-autoupdate/tree/enhance-output-of-status-command
I will try to finish all other options and then create a pull request.
Title says it all. Thanks for this awesome software!