1.0.0 ā¢ Published 2 years ago
@frankgalindo/mirror-repo v1.0.0
@frankgalindo/mirror-repo
š CLI to help to the mirror from a GIT repository to another
Installation
npm install -g @frankgalindo/mirror-repo
# or use NPX to do not install globally
npx @frankgalindo/mirror-repo
Usage
Parameters
Param | Type | Required | Description |
---|---|---|---|
--sourceRepo | string | X | URL from the source GIT repository |
--targetRepo | string | X | URL from the target GIT repository |
--y | Bool | Skip confirmation prompt |
Example
mirror-repo --sourceRepo https://github.com/FrankWendel/teste-source-1 --targetRepo https://github.com/FrankWendel/teste-target-1
If you don't provide the target and the source repos as parameters the CLI will ask you to do it:
āÆ mirror-repo
? Please enter the source repository URL: https://github.com/FrankWendel/teste-source-1
? Please enter the target repository URL: https://github.com/FrankWendel/teste-target-1
? This command will override the target repo, do you want to continue? (Y/n) Yes
Disclamer
This type of command will override everything in the target repository, so you must have the corrects permissions to do that.
Contribute
Fell free to contribute š
To run the project locally you will need:
- Node v16.x.x
- NPM
First Install the npm dependencies:
npm install
Link the project into you global NPM:
npm link
Now you can change the code and then test it by the command line.
Road map
- Better messages (text and colors)
- Better error handling
- Tests
- Debug
Collaborators
- Frank Galindo https://www.linkedin.com/in/frank-galindo/
License
MIT