Skip to content

Athesto/CLI_Checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ CLI_Checker (vTavo) ⚡

A Holberton School checker tool to avoid using your browser to check manaully every task of your current project.
This is a fork of the original project by Diego Lopez. Please check his page

Prerquisites

You need the tools section available in the intranet. You can check if you have this icon in the left menu:

How to install

Run the instalation script

$ bash <(curl -sL https://github.com/Athesto/CLI_Checker/raw/main/install.sh)
$ checker

the program are going to ask for:

  • your holberton's email (xxxx@holbertonshcool.com)
  • your API key (link)
    • it's in the Intranet > Tools > Holberton's Intranet API key
    • it's an HEX string of 32 chars ex. 123abc123abcdef99001122cdef12351
  • your intranet's password (it will be hidden so don't worry if you don't see the chars)

How to use

just run cecker in your terminal ant the checker terminal will start

$ checker
CLI-Checker ⚡

Now that you are in the console, you has to select the project with project <num>. The project's number is the last number of the url

Example of use

Suppose that you want to check the project 0x00. C - Hello, World
The url is https://intranet.hbtn.io/projects/212
So, the project's number is 212

CLI-@Checker ⚡$ project 212
0 - Preprocessor
1 - Compiler
2 - Assembler
3 - Name
4 - Hello, puts
5 - Hello, printf
6 - Size is not grandeur, and territory does not make a nation
7 - What happens when you type gcc main.c
8 - Intel
9 - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity

  ┌─ You may now run:

  └─┬─ check <task number>
    ├ To check a specific task.

    ├─ check Not implemented yet🤕, Sorry.
    ├ To check all tasks of current project.
    └─┐
      ├─ To check only task 2 you would run

      └─ Example: check 2

CLI-@Checker ⚡$ check 1
Task 1 Compiler
Checking your code... 🎉
🔥 Check 0: Approved 🏆
⚡ Check 1: Approved 🔥
🤩 Check 2: Approved 🎊
🥂 Check 3: Approved 🔥

Available commands

  • help: show help. available is misspelled
  • EOF: (Ctrl-D) finish the console
  • quit: finish the console (same as EOF)
  • project: select project
  • check: slect task

How to uninstall

To uninstall you only need to delete these files

  • /opt/checker
  • /usr/local/bin/checker
  • credentials in ~/.config/hbn
$ sudo rm -rf /opt/checker/
$ sudo rm /usr/local/bin/checker
$ rm -rf ~/.config/hbn

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.6%
  • Shell 17.8%
  • Makefile 0.6%