Retocli is a command-line interface (CLI) tool that enables users to interact with the Acepta El Reto platform directly from their terminal. Acepta El Reto is a Spanish website that hosts programming challenges and problems for enthusiasts and learners alike.
- Log in to the AceptaElReto system using your credentials.
- View your user profile and profiles of other users using their ID or username.
- Submit results to the platform for evaluation and retrieve results for a specific problem by its ID or the latest attempts for all problems.
You can download a precompiled binary from the Releases page. Choose the appropriate binary for your operating system and architecture, then follow these steps:
-
Download the binary to your local machine.
-
Make the binary executable:
chmod +x retocli
-
Move the binary to a directory in your system PATH (optional but recommended):
sudo mv aceptaelreto /usr/local/bin/
Alternatively, you can build the CLI from the source code. Follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/MarcOrfilaCarreras/retocli.git
-
Navigate to the project directory:
cd retocli
-
Build the CLI using the following command:
make build
The CLI provides several commands for interacting with the system. Below are the available commands along with their respective usage and arguments:
Log in to the system by providing valid credentials.
retocli login [arguments]
Arguments:
- -h, --help: Show help message and exit.
- -u, --username: Specify the username for authentication.
- -p, --password: Specify the password for authentication.
Log out and terminate the current authenticated session.
retocli logout [arguments]
Arguments:
- -h, --help: Show help message and exit.
View user profile information.
retocli profile [arguments]
Arguments:
- -h, --help: Show help message and exit.
- -i, --id: Specify the ID of the user.
- -u, --username: Specify the username.
Retrieve and send information about submissions.
retocli results [arguments]
Arguments:
- -h, --help: Show help message and exit.
- -i, --id: Specify the ID of the challenge to retrieve results.
- -l, --language: Specify the programming language (Accepted values: JAVA, C, C++).
- -f, --file: Specify the file to be sent for the challenge.
- -o, --operation: Specify a specific action to perform on the challenge (Accepted values: push, results).
See the LICENSE.md file for details.