XcodesOrg / XcodesOrg/xcodes

[Feature request] hooks for scripts

Open
#385 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

Would it be possible to add a feature to run scripts before and after certain events
I think this would have to be configure in a config file using $XDG_CONFIG_HOME.
Some of the hooks could be

  • pre-upgrade
  • post-upgrade
  • pre-install
  • post-install
  • pre-uninstall
  • post-uninstall
  • pre-switch
  • post-switch

these could trigger the execution of scripts (python, ruby, pearl, apples script, swift using hash bang, apps (apps or helpers) or shortcuts .

These could provide many solutions to solve problems some examples

  • clean ups
  • back ups
  • change paths or variables
  • create/remove links
  • update/install/uninstall other dev apps
  • download code, libraries, apps and plugins
  • Use third party notifications and chat systems
  • extra logging
  • communicate with web services
  • x-callback other apps
  • Apple Shortcuts
  • ci/cd

They could optionally pass some basic arguments such as type, short name , bundle id, version, log name, path , url , etc

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files, tests, or an entry point. Start by locating the command handlers for upgrade, install, uninstall, and switch, then determine how configuration is currently loaded. The work would be done when a defined hook configuration and lifecycle behavior are implemented, documented, and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.