Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.4 #1

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0e9a873
README with more Sections. install and How use
Athesto Jun 27, 2021
5a6e290
Update README.md
Athesto Jul 8, 2021
3fc1fc3
autopep8
Athesto Jul 18, 2021
92fc97c
ignore .env file
Athesto Jul 18, 2021
bb20a7c
fix answer lower in credentials' question
Athesto Jul 18, 2021
9fb0860
skip instro if it's if debug variable is on
Athesto Jul 18, 2021
0d7011b
debuging with environments if debug flag is True
Athesto Jul 18, 2021
7a7a1ad
path credentials as variable
Athesto Jul 18, 2021
7b099ad
install with repo as variable
Athesto Jul 18, 2021
ca2eac4
debug variable out no more in Global variable, instead use the DEBUG …
Athesto Jul 18, 2021
50c5525
include VERSION variable
Athesto Jul 18, 2021
79f0c24
remove version in installation script
Athesto Jul 18, 2021
2739311
branch variable
Athesto Jul 18, 2021
3a7ed51
-b flag in the branch
Athesto Jul 18, 2021
aac7fcb
branch as global variable
Athesto Jul 18, 2021
dd476b1
try makedirs if file doesn't exist
Athesto Jul 18, 2021
192b253
mkdirs without os
Athesto Jul 18, 2021
31e7206
fix try brefore open file
Athesto Jul 18, 2021
df59f6f
documentation
Athesto Jul 18, 2021
7998e88
ignore elements
Athesto Jul 18, 2021
382b5c7
Merge branch 'main' of github.com:Athesto/CLI_checker into main
Athesto Jul 18, 2021
3e21f42
uninstalll instructions
Athesto Jul 18, 2021
a881778
include VERSION in the long long input message
Athesto Jul 19, 2021
9ab7554
Add files via upload
Athesto Jul 24, 2021
25ab922
include images
Athesto Jul 24, 2021
f462be0
EOL with a line
Athesto Jul 27, 2021
cb1fe02
handle SIGINT (Ctrl-c), nop in project, stop check
Athesto Jul 27, 2021
a193bff
fix function name handled ctrl-c
Athesto Jul 27, 2021
5c93a24
makefile
Athesto Jul 27, 2021
d7be69c
v0.3
Athesto Jul 27, 2021
134d0e8
SHELL bash in makefile
Athesto Jul 27, 2021
551b145
remove uknown image
Athesto Jul 27, 2021
9e15d83
initialize v0.4
Athesto Aug 2, 2021
c91ff22
manage signals for ptyhon3.4
Athesto Aug 2, 2021
792d521
manage project if it doesn't have any argument
Athesto Aug 2, 2021
76e5e82
sort tasks
Athesto Aug 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*__pychache__
credentials
*pyc
.env
.*.swp
tmp/
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changelog
> here you can see every change between versions

## v0.4
### Fixed
- python3.4 had problems with singal.signal()
- manage project if there is no arguments

## v0.3
### Added
- Handle Ctrl-c in checker
- `makefile` with `install` and `uninstall`
- `EOL` with a goodbye message

## v0.2
### Added
- `.env` file support, It use `EMAIL`, `PASSWORD`, `API`, `DEBUG` variables
- `VERSION`, `PATH_CRED` variables

### Fix
- Set installation confirmation problem with ['Y'/'N']
- checker.py with pycodestyle
- move `hbnb_creds`, the `/tmp` folder delete the credentials


110 changes: 105 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,107 @@
# ⚡ CLI_Checker ⚡
A Holberton School checker tool to avoid using your browser to check manaully every task of your current project.
# ⚡ CLI_Checker (vTavo) ⚡
> A Holberton School checker tool to avoid using your browser to check manaully every task of your current project.<br>
> This is a fork of the original project by Diego Lopez. Please check his [page][CLI_Diego]

## Prerquisites
You need the [tools][api_link] section available in the intranet. You can check
if you have this icon in the left menu:

<div style="text-align:center">
<img align"center" src="/assets/tool_icon2.png"/>
</div>

## How to install

Run the instalation script
```console
$ bash <(curl -sL https://github.com/Athesto/CLI_Checker/raw/main/install.sh)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este deberia ser DiegoCol93

$ checker
```
the program are going to ask for:
- your holberton's __email__ (xxxx@holbertonshcool.com)
- your __API__ key ([link][api_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

```console
$ 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<br>

#### Example of use
Suppose that you want to check the project __0x00. C - Hello, World__<br>
The url is `https://intranet.hbtn.io/projects/212`<br>
So, the project's number is __212__
```console
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`
```console
$ sudo rm -rf /opt/checker/
$ sudo rm /usr/local/bin/checker
$ rm -rf ~/.config/hbn
```
## Contributors
- Diego Lopez
- Wiston Venera
- Leonardo Valencia
- [Diego Lopez][@DiegoCol93]
- [Wiston Venera][@wsvem]
- [Leonardo Valencia][@4ions]
- [Gustavo Mejía][@Athesto]

<!--links-->
[api_link]: https://intranet.hbtn.io/dashboards/my_tools
[@Athesto]: https://github.com/Athesto
[@wsvem]: https://github.com/wisvem
[@4ions]: https://github.com/4ions
[@DiegoCol93]: https://github.com/DiegoCol93
[CLI_Diego]: https://github.com/DiegoCol93/CLI_Checker/
[tool_icon2]: https://github.com/Athesto/CLI_Checker/raw/main/assets/tool_icon2.png
[tool_icon3]: /assets/tool_icon2.png

Binary file added assets/tool_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tool_icon2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.