27 Commits

Author SHA1 Message Date
447fcd04a8 chore(xbar/brew-updates): update Xbar::Printer class 2025-09-22 09:35:13 +01:00
0224bd608c feat(xbar): update plugin images and bump versions 2025-08-24 22:44:54 +01:00
e47b73d645 style(xbar): fix rubocop linting complaints 2025-08-24 17:21:52 +01:00
eb7f92740c feat(xbar/brew-updates): add support for SwiftBar in addition to Xbar 2025-08-24 16:58:57 +01:00
61d072a36c fix(xbar/brew-updates): show installed cask version(s) correctly
The brew outdated command recently changed the "installed_versions"
field on casks from a string to an array, bringing it in line with
formula details.

This allows it to deal with either string or array values, and show them
correctly.
2023-06-20 00:37:14 +01:00
43d8a4ad9f fix(xbar/brew-updates): fix method name typo 2023-04-06 23:24:46 +01:00
84bb6dfb80 fix(xbar/brew-updates): fix issue with formula vs cask name conflicts
When upgrading all (formulas and casks), brew would yield an error if
there's a formula and cask installed with the same name.
2023-04-04 23:13:25 +01:00
900e69a07f feat(xbar/brew-updates): few features and style changes
- Add more granular greedy options.
- Add post-run options for optionally running "brew cleanup" and/or
  "brew doctor" after operations that modify packages.
- Add new "Upgrade All: Exclude" option which simply excludes a
  formula/cask when using any of the Upgrade All operations.
- Re-style menus a bit with emoji as icons for most operations.
2023-03-21 00:37:01 +00:00
10afd47a2b fix(xbar/brew-updates): fix VAR_GREEDY config value type 2023-03-12 12:39:19 +00:00
881e5f4d12 chore(xbar): fix typo in variable name 2023-03-12 12:35:18 +00:00
0afaeaa9a2 fix(xbar/brew-updates): handle unexpected config values better
Also refactor Xbar::Config and and Brew::Common classes a bit to make
them more generic, and have more features.
2023-03-12 12:23:40 +00:00
4bf199c73b feat(xbar/brew-updates): support latest and auto-updates greedy options 2023-03-09 22:37:03 +00:00
14c58e849f feat(xbar/brew-updates): add greedy option that displays more cask updates 2023-02-26 18:02:58 +00:00
204a8979da fix(xbar/brew): improve brew executable detection
This should address issues on Apple Silicon based Macs.
2023-02-26 17:58:32 +00:00
e252161208 fix(xbar/brew-updates): resolve rubocop linting complaints 2023-01-29 16:03:44 +00:00
633a837682 feat(xbar/brew-updates): update image URL 2022-09-10 02:56:10 +01:00
9860b72e31 feat(xbar/brew-updates): Update Xbar module from brew-services 2022-09-10 02:37:37 +01:00
b99c188611 chore(xbar/brew-updates): simplify code for rendering alternate text 2022-03-01 18:59:18 +00:00
4e43aacaf1 fix(xbar/brew-updates): upgrade all actions now only update listed packages
Previously when upgrading all, no package names were passed in, meaning
if a new package has become available since the xbar script last ran,
that would be updated too.

Now instead each listed package in the xbar menu is explicitly passed to
brew.
2022-01-16 03:27:40 +00:00
a29afc1b72 fix(xbar/brew): do not bring xbar into focus when triggering plugin refresh 2021-11-26 10:36:59 +00:00
ac48156a18 fix(xbar/brew-updates): refresh xbar plugin after update in terminal completes
Previously the xbar plugin would refresh as soon as you clicked on an
update, but since brew upgrades takes much longer to run in the popped
up terminal window. This now uses the xbar:// URI scheme to trigger a
plugin refresh after the brew commands have run in the terminal.
2021-11-09 12:08:17 +00:00
f6f1742c54 chore(xbar/brew-updates): updates screenshot URL 2021-11-02 00:22:38 +00:00
dcc0dc004b chore(xbar/brew-updates): bump version to 2.1.0 2021-11-02 00:06:38 +00:00
db56df859d feat(xbar/brew-updates): improve label tests and counts 2021-11-01 23:58:49 +00:00
ac89310eeb feat(xbar/brew-updates): move update all actions to overview status menu 2021-11-01 23:58:49 +00:00
423a36d245 chore(xbar): add abouturl to xbar plugins 2021-11-01 00:31:53 +00:00
2ec059e554 feat(xbar): merge brew cask/formula plguins into brew-updates 2021-11-01 00:06:42 +00:00