Refactor Pushgate CLI to integrate pre-push hook and remove separate …#70
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request removes the
pushgate pushcommand and its related documentation, code, and diagrams. The focus is now solely on integrating Pushgate with the standardgit pushworkflow via thepre-pushhook, 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 pushcommand and related code:pushgate pushcommand, its argument parsing (parsePushCommandArgs), and all supporting logic fromsrc/cli.tsand deletedsrc/cli/push-args.ts. [1] [2] [3]Documentation updates to reflect the removal:
README.mdto clarify that Pushgate integrates directly withgit pushvia thepre-pushhook and removed references to the wrapper command. [1] [2]These changes streamline Pushgate's integration with Git, reduce maintenance overhead, and ensure the documentation accurately reflects the supported workflow.