funny-initial-git-commit
funny-initial-git-commit copied to clipboard
Prepared CLI to receive commands, added new modules and new messages.
Changelog
-
I wondered if I could use the funny-commit from the terminal without copying and pasting the message, I didn't see an example of how to do it in Readme.md so I added it, also I had to remove the colors in the commit because, though in git log command from the terminal everything seems good, Github was taking the color codes in the message making the commits look really weird. Look last two commits, they were generated using the example in Readme.md.
-
In bin file I changed the function name from random to start, I did this because the program now can have more than one functionality besides giving the funny-commit. Which takes me to point three.
-
I added more functionality, now the user can watch the CLI version and can print a helping information to know how to use the CLI, I added an explanation of this in Readme.md.
-
As I added more functionality I the index file was growing up with logic that could be abstracted in new files, first of this was the messages, as the messages grow the file will grow, and this could become a problem for developers trying to follow the code flow, because this is not necessarily part of the logic, this why I decided to move it to a new file. Also, the funny commands are more a kind of services which are called dynamically from the index, they can also grow up as more commands are added, but they are part of another context so I decided to move then to a new file called funny.js in src directory where they are called from.
-
As I added commands, I treated syntax errors that could be generated from the user.
-
I added more commit messages.