Posts

Showing posts from October, 2020

[W4] Lab 3

Image
For Lab 3, I made some changes for my CLI tool, detectURL. 1. I made my program to exit with the right exit code (0, 1, or 3) 2 I made my program to support 3 flags, --all, --bad, and --good. I first created  Issue #5  and Issue #6  as the Lab's requirement. Then I created a new branches from master by using the command: git checkout -b issue-5 I made the changes which are: b5224c  and 9869105 I merged each of the commit to the master branch and pushed the master branch to GitHub. Now it supports 3 new flags and if you check the exit code after execution, it will have different exit codes for different scenarios.

[W3] Lab2 - First Pull Request

Image
This week we had to create a pull request for other student's work done last week.  I found Paul's project interesting, since he made his CLI tool with bash script.  I looked into Paul's project and found that Paul's CLI only supported the "-v" argument so I decided to make it support "--version" as well. I also wanted to add add one more optional feature, which will add a command line flag to allow specifying a custom User Agent when doing the curl request.  First, I opened an issue as follow: and forked Paul's repo to my GitHub Account.  Then I cloned it to my local machine and made some changes. The changes are as follow: I also added how to use my new function in the README file. I pushed the changes to GitHub and the "Compare & pull request" appeared on the repo Finally, I created a pull request for Paul! Final Thoughts It was really confusing at first, however, now I think I have a good enough understanding how git and gitHu