1.0.0 ā€¢ Published 2 years ago

@frankgalindo/mirror-repo v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Node.js Package npm version

@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

ParamTypeRequiredDescription
--sourceRepostringXURL from the source GIT repository
--targetRepostringXURL from the target GIT repository
--yBoolSkip 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

License

MIT

1.0.0

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago