A CLI tool to imitate the functionalities of Dependabot.
Clone the repository:
git clone https://github.com/dyte-submissions/dyte-vit-2022-MishraLokesh
Install the dependencies:
npm i
Install the package globally on your machine:
npm i --location=global
- To view the input csv provided:
sdk_tool list -i "name.csv"
- To add a new repository information on top of csv:
sdk_tool add
For example:
sdk_tool add
Enter the name of the repository:
Enter the link of the repository:
This keeps continues until the user wants to exit explicitly by pressing 'ctrl+c'
- Verify the version number with the version provided:
sdk_tool verify "dependancy_name@version_number"
This will verify the version number of each repository provided in the csv file with the version number provided of the respective dependency
sdk_tool pull_req "dependancy_name@version_number" -update
where -u, -update
can take at least one value. Values are separated by spaces.
This will fetch the package.json file of those repositories which are out of date, and fork the repository, make changes to the remote repository, and then generate a pull request to the original repository