README.md (966B)
1 # upd: a tool to update everything on macOS 2 Wraps Homebrew, Pipx, RubyGems, and NPM (if you have them installed). 3 Easy to extend by defining a class per new package system. 4 Only depends on Ruby. 5 6 ## Installation 7 ### macOS 8 Via Homebrew (`brew install thezeroalpha/formulae/upd`), via the methods below. 9 10 ### Other 11 You have two options: 12 13 * Install using make: run `make install` in the root of this repository 14 * Install manually: download the repo, then copy the `upd` script to a directory that's in your `PATH`, and copy the manpage. 15 16 ## Extending 17 If you want to add a new package system, the class needs to contain one method: `do_upgrade`. 18 Optionally, you can define a `prompt_user` method to ask for user input, and a `cleanup` method to clean up (prune packages etc.). 19 This will probably be refactored in later releases. 20 Additionally, every class should check its dependencies (e.g. the package manager executable). 21 Make sure to run your code through `rubocop`.