Skip to content

CLI tool that enables users to interact with the Acepta El Reto platform

License

Notifications You must be signed in to change notification settings

MarcOrfilaCarreras/retocli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retocli

License Build Last commit

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.

Features

  • 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.

Installation

Precompiled Binary

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/

Build from Source

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

Usage

The CLI provides several commands for interacting with the system. Below are the available commands along with their respective usage and arguments:

login

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.

logout

Log out and terminate the current authenticated session.

retocli logout [arguments]

Arguments:

  • -h, --help: Show help message and exit.

profile

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.

results

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).

License

See the LICENSE.md file for details.