1.0.1 • Published 2 years ago

sdk_tool__lokeshmishra v1.0.1

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

SDK_TOOL

A CLI tool to imitate the functionalities of Dependabot.

Installation

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

Usage

  1. To view the input csv provided:
sdk_tool list -i "name.csv"
  1. 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'

  1. 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