Create a formula on Ritchie that will return a JSON with Github credentials.
Note: The challenge consists in configure those inputs inside the config.json file, but run the formula without informing them as
prompt
orstdin
(they will be extracted automatically). You'll find all the informations you need in the how to manipulate credentials tutorial section.
Command suggestion: rit github get user
This formula needs to contain (at least) those two inputs parameters:
Username (RIT_GIT_USER
).
Token ( RIT_GIT_TOKEN
).
The formula needs to follow the next steps:
Extract all inputs parameters.
Consume the GitHub api to get the user data.
Return the result on the terminal.
If you want to play a little more, here are some suggestions:
Develop some Github operation by manipulating these credentials.
Code a formula which will allow the user to create a repository on Github.
Code a formula which will allow the user to add, commit and push using only one command.
Code a formula which will allow the user to generate a release of the informed Github repository.
👉 If you've completed the second challenge, let's go to level 3 task!