Skip to content

v1.1.1

Choose a tag to compare

@paxcalpt paxcalpt released this 15 Dec 16:46
· 8 commits to main since this release

Added

  • Upgrade Executor: New execute_upgrade() function for safely executing upgrade commands
    • Automatic handling of compound commands with && (e.g., brew update && brew upgrade pkg)
    • Proper command parsing using shlex.split() to prevent shell injection
    • Configurable output display and timeout settings
    • Returns (success, error_message) tuple for easy error handling
  • UpgradeError: New exception class for upgrade failures with command details
  • execute_upgrade_raise(): Convenience wrapper that raises exceptions instead of returning tuples

Changed

  • Exported upgrade utilities from main package: execute_upgrade, execute_upgrade_raise, UpgradeError

Full changelog: https://github.com/HenriquesLab/henriqueslab-updater/blob/main/CHANGELOG.md