From e31d600cb395a1a9efe6d9fe5c34d24f01d2d609 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 21 Jul 2025 02:39:02 +0800 Subject: [PATCH] Note for dev --- tool/rawstr4c/doc/01-Develop.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/tool/rawstr4c/doc/01-Develop.md b/tool/rawstr4c/doc/01-Develop.md index 001a280..1b13081 100644 --- a/tool/rawstr4c/doc/01-Develop.md +++ b/tool/rawstr4c/doc/01-Develop.md @@ -37,15 +37,41 @@ git clone https://gitee.com/RubyMetric/chsrc.git -b dev ## Run +**For convenience, when developing, we only use `just` to invoke it.** + +> [!IMPORTANT] +> When developing `rawstr4c` and maintaining `chsrc`, +> we must always give a path relative to the root directory of the whole `chsrc` project! +> This is because `just` will switch back to the project root directory by itself. + +```bash +# Now we've already cd into the current dir +cd src/recipe +# Still have to use path relative to root!!! +just rawstr4c ./src/recipe/ware +``` + ```bash just rawstr4c ``` +We can install the distribution, by this way, we don't need `just`. + ```bash zef install . -rawstr4c +rawstr4c --help +``` +And therefore no such limitations mentioned above! + +```bash +cd src/recipe +# No need to to use path relative to root now!!! +rawstr4c . +``` + +```bash zef uninstall rawstr4c ```