From 26a2bfe295d8986ae4ed8670f513ba1c0e832e8b Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Thu, 26 Dec 2024 16:28:39 +0800 Subject: [PATCH] chore(dev): Try just instead of xtasks methods (#5461) --- dev/README.md | 8 +++++--- .cargo/config.toml => justfile | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) rename .cargo/config.toml => justfile (82%) diff --git a/dev/README.md b/dev/README.md index bbf68c5d25c2..3a3fa1e25921 100644 --- a/dev/README.md +++ b/dev/README.md @@ -4,16 +4,18 @@ This project is designed to provide dev tools for the entire opendal project. ## Usage +List all available recipes: + ```bash -cargo o help +just --list ``` -## Features +## Recipes ### Generate Generate code for OpenDAL services. ```bash -cargo o generate -l python +just generate python ``` diff --git a/.cargo/config.toml b/justfile similarity index 82% rename from .cargo/config.toml rename to justfile index 3c81232ab2af..e1f50c6bfcb9 100644 --- a/.cargo/config.toml +++ b/justfile @@ -15,5 +15,8 @@ # specific language governing permissions and limitations # under the License. -[alias] -o = "run --manifest-path ./dev/Cargo.toml --" +# Generate code for language +# +# Available languages: python +generate language: + cargo run --quiet --manifest-path=dev/Cargo.toml -- generate -l {{language}}