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

feat: implement first version of CLI using clap and YAML config file … #14

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

charley04310
Copy link
Contributor

Description:

This pull request implements the first version of the command-line interface (CLI) for our application using the clap library and loading configuration from a YAML file. This initial implementation will enable our application to act as an HTTP client with the external API.

The CLI implements the following subcommands:

  • configure: configure the application with the specified parameters in the YAML configuration file.
  • status: display the current status of YAML file.
  • apply: apply the current configuration to the external API.
  • kill: stop the application.

You can try by using this command :

cargo run -- configure --config-path=<folder-path>/cloudlet/src/cli/config/config.template.yaml

…loading

Signed-off-by: Charley <charley.geoffroy@protonmail.com>
@charley04310 charley04310 merged commit a2c1137 into virt-do:main Apr 8, 2024
2 checks passed
@charley04310 charley04310 self-assigned this Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants