From 64893dc37e92f18755920480710e30b7dcbed3ee Mon Sep 17 00:00:00 2001 From: Mauran Date: Thu, 2 May 2024 11:43:18 +0200 Subject: [PATCH] chore: move example in cli Signed-off-by: Mauran --- README.md | 8 ++++---- src/{agent => cli}/examples/config.toml | 0 src/{agent => cli}/examples/main.rs | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename src/{agent => cli}/examples/config.toml (100%) rename src/{agent => cli}/examples/main.rs (100%) diff --git a/README.md b/README.md index 12e28b1..c32f809 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,10 @@ Go to the project directory: cd cloudlet ``` -Create a TOML config file or update the [existing one](./src/agent/examples/config.toml): +Create a TOML config file or update the [existing one](./src/cli/examples/config.toml): ```bash -cat << EOF > src/agent/examples/config.toml +cat << EOF > src/cli/examples/config.toml workload-name = "fibonacci" language = "rust" action = "prepare-and-run" @@ -63,7 +63,7 @@ address = "localhost" port = 50051 [build] -source-code-path = "$(readlink -f ./src/agent/examples/main.rs)" +source-code-path = "$(readlink -f ./src/cli/examples/main.rs)" release = true EOF ``` @@ -95,7 +95,7 @@ cargo run --bin api ### Send the request using the CLI ```bash -cargo run --bin cli -- run --config-path src/agent/examples/config.toml +cargo run --bin cli -- run --config-path src/cli/examples/config.toml ``` > [!NOTE] diff --git a/src/agent/examples/config.toml b/src/cli/examples/config.toml similarity index 100% rename from src/agent/examples/config.toml rename to src/cli/examples/config.toml diff --git a/src/agent/examples/main.rs b/src/cli/examples/main.rs similarity index 100% rename from src/agent/examples/main.rs rename to src/cli/examples/main.rs