Table of Contents
github_username: SnowSword1010
, repo: dyte-vit-2022-SnowSword1010
, twitter_handle: @jmayank2001
, linkedin_username: mayank-1010
, email_client: mayank.jain2019a@vitstudent.ac.in
, email: jmayank2001@gmail.com
, project_title: Dyte-CLI-App
, project_description: A Cli tool for managing release process
Given a list of Github repositories, assuming all of them are node js projects with a package.json and package-lock.json in the root, and the name and version of a dependency, we want to give the current version of that dependency and tell if the version is greater than or equal to the version specified or not.
Secondly, for all the repositories that have the version lower than the one specified, if passed as additional param, let’s say -update
, it should create a PR updating the version.
- Have python installed
- Clone the repo
git clone https://github.com/dyte-submissions/dyte-vit-2022-SnowSword1010.git
- Create virtual environment
python3 -m venv venv
- Activate virtual environment
source venv/bin/activate
- Install requirements
pip3 install -r requirements.txt
python3 main.py [-h] [-update] --i csv_filename --d dependency_name
h flag (optional): help update flag (optional): sets the update flag to true which comes in required when we want to update the dependency version to the one specified by the user. NOTE: Although the project demanded the creation of pull requests, I could not implement the entire thing due to time constraints. I cloned the repo and made changes into it locally instead.
--i flag (mandatory): used to specify the csv file name where data would be read from. --i examples/example1.csv could be used to test the utility. --d flag (mandatory): used to specify the dependency name. --d axios@0.23.4 can be used to test the utility
Sample usage command:
python3 main.py -h
python3 main.py --i examples/example1.csv --d axios@0.23.4
python3 main.py -update --i examples/example1.csv --d axios@0.23.4
Sample Screenshots
Your Name - Mayank Jain @SnowSword1010 - mayank.jain2019a@vitstudent.ac.in
Project Link: https://github.com/dyte-submissions/dyte-vit-2022-SnowSword1010