Skip to content

Refactor Pushgate CLI to integrate pre-push hook and remove separate …#70

Merged
dbrosio3 merged 1 commit into
mainfrom
cleanup-push-refactor
Jun 28, 2026
Merged

Refactor Pushgate CLI to integrate pre-push hook and remove separate …#70
dbrosio3 merged 1 commit into
mainfrom
cleanup-push-refactor

Conversation

@dbrosio3

Copy link
Copy Markdown
Member

This pull request removes the pushgate push command and its related documentation, code, and diagrams. The focus is now solely on integrating Pushgate with the standard git push workflow via the pre-push hook, simplifying both the user experience and the codebase. Updates have been made throughout the documentation to reflect this change, and all code handling the wrapper command and its flags has been deleted.

Removal of pushgate push command and related code:

  • Removed the pushgate push command, its argument parsing (parsePushCommandArgs), and all supporting logic from src/cli.ts and deleted src/cli/push-args.ts. [1] [2] [3]

Documentation updates to reflect the removal:

  • Updated README.md to clarify that Pushgate integrates directly with git push via the pre-push hook and removed references to the wrapper command. [1] [2]
  • Updated architectural and workflow documentation to remove or reword mentions of the wrapper command and its flags, and to clarify the new workflow. [1] [2] [3] [4] [5] [6] [7] [8] [9]

These changes streamline Pushgate's integration with Git, reduce maintenance overhead, and ensure the documentation accurately reflects the supported workflow.

…push command

- Updated documentation to reflect changes in the workflow, emphasizing the integration of Pushgate with Git's pre-push hook.
- Removed the `push` command from the CLI, consolidating functionality into the `pre-push` command.
- Eliminated the `push-args.ts` and `push.ts` modules, simplifying the codebase by removing unnecessary abstractions related to push operations.
- Adjusted the `skip-controls.ts` to remove the `buildGitPushArgs` function, as it is no longer needed.
- Deleted tests related to the `push` command and its associated functionality, ensuring the test suite reflects the current state of the codebase.
- Updated existing tests to verify the absence of the `push` command and ensure proper handling of the new workflow.
@dbrosio3 dbrosio3 merged commit 5e3f62f into main Jun 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants