-
Notifications
You must be signed in to change notification settings - Fork 1
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
Athesto
wants to merge
36
commits into
0100-0100:main
Choose a base branch
from
Athesto:v0.4
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
V0.4 #1
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 5a6e290
Update README.md
Athesto 3fc1fc3
autopep8
Athesto 92fc97c
ignore .env file
Athesto bb20a7c
fix answer lower in credentials' question
Athesto 9fb0860
skip instro if it's if debug variable is on
Athesto 0d7011b
debuging with environments if debug flag is True
Athesto 7a7a1ad
path credentials as variable
Athesto 7b099ad
install with repo as variable
Athesto ca2eac4
debug variable out no more in Global variable, instead use the DEBUG …
Athesto 50c5525
include VERSION variable
Athesto 79f0c24
remove version in installation script
Athesto 2739311
branch variable
Athesto 3a7ed51
-b flag in the branch
Athesto aac7fcb
branch as global variable
Athesto dd476b1
try makedirs if file doesn't exist
Athesto 192b253
mkdirs without os
Athesto 31e7206
fix try brefore open file
Athesto df59f6f
documentation
Athesto 7998e88
ignore elements
Athesto 382b5c7
Merge branch 'main' of github.com:Athesto/CLI_checker into main
Athesto 3e21f42
uninstalll instructions
Athesto a881778
include VERSION in the long long input message
Athesto 9ab7554
Add files via upload
Athesto 25ab922
include images
Athesto f462be0
EOL with a line
Athesto cb1fe02
handle SIGINT (Ctrl-c), nop in project, stop check
Athesto a193bff
fix function name handled ctrl-c
Athesto 5c93a24
makefile
Athesto d7be69c
v0.3
Athesto 134d0e8
SHELL bash in makefile
Athesto 551b145
remove uknown image
Athesto 9e15d83
initialize v0.4
Athesto c91ff22
manage signals for ptyhon3.4
Athesto 792d521
manage project if it doesn't have any argument
Athesto 76e5e82
sort tasks
Athesto File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
*__pychache__ | ||
credentials | ||
*pyc | ||
.env | ||
.*.swp | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
$ 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 | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Este deberia ser DiegoCol93