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(CLI): implement reading of code and env files from config path and call "run" endpoint #15

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

charley04310
Copy link
Contributor

Description

This pull request aims to implement a feature for reading files based on the "code_path" and "env_path" arguments (config-path). After reading these files (if they exist), the CLI sends a JSON object to the HTTP API at the "run" endpoint with a JSON body containing the code and environment file. It also implements small code refactor of CLI arguments.

How to test this feature

To test this feature, you need to start the HTTP API first:

From src/api : run cargo run
From src/cli: run cargo run -- run --config-path=/path/file

@charley04310 charley04310 changed the title feat(CLI): implement reading of code and env files from config path and call run endpoint in CLI feat(CLI): implement reading of code and env files from config path and call "run" endpoint Apr 10, 2024
@charley04310 charley04310 merged commit b98a1c6 into virt-do:main Apr 15, 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.

3 participants