Vigilia CLI is a command-line interface for the Vigilia service. The service, which contains the logic for the Vigilia service, is located here.
To build the Vigilia CLI, you need to have Rust and Cargo installed.
You can install those using rustup:
rustup toolchain install stableThen, you can build the CLI using the following command:
cargo buildThis will build the CLI and create an executable in the target/debug directory.
To build and run the CLI, you can use the following command:
cargo run -- <args>Where <args> are the args to pass to the CLI.
To build a DEB package, you need to have cargo-deb installed.
You can install it using the following command:
cargo install cargo-debThen, you can build the DEB package using the following command:
cargo debThis will create a DEB package in the target/debian directory.
To update the API implementation, you need to run the generate.sh script.
This script will generate the API implementation based on the OpenAPI document.
The OpenAPI document is located in the vigilia repository with the service.
After the generation review the generated code and make sure it is correct.
Note: Revert the changes setting the body of the request in
src/apis/default_api.rsas the generated code sends the body as a json not as text/plain.