DomT4 / homebrew-autoupdate

:tropical_drink: An easy, convenient way to automatically update Homebrew.
BSD 2-Clause "Simplified" License
995 stars 55 forks source link

Include --start interval and other options in --status command #38

Open NathanUrwin opened 3 years ago

NathanUrwin commented 3 years ago

Title says it all. Thanks for this awesome software!

DomT4 commented 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! 😺

swissbuechi commented 10 months 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! 😺

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.

swissbuechi commented 10 months ago

I've already implemented --immediate and interval on my fork: https://github.com/swissbuechi/homebrew-autoupdate/tree/enhance-output-of-status-command

image

I will try to finish all other options and then create a pull request.