Update the doc for regenerating the C client

This commit is contained in:
Hui Yu
2022-03-10 16:08:37 +08:00
parent 5bf6cd5262
commit c234dc9d2d

View File

@@ -52,6 +52,16 @@ cd $GEN_REPO_ROOT/openapi
./c.sh $OUTPUT_DIR $SETTING_FILE ./c.sh $OUTPUT_DIR $SETTING_FILE
``` ```
Optionally, delete the old model/api/unit-test files in the C client because some of them are deprecated in the new Kubernetes spec:
```bash
cd $CLIENT_REPO_ROOT/kubernetes
find ./model -type f -not -name "int_or_string*" -exec rm -r {} \;
find ./api -type f -not -name "int_or_string*" -exec rm -r {} \;
find ./unit-test -type f -not -name "manual*" -exec rm -r {} \;
cd -
```
Copy the generated files to overwrite the files in the C client: Copy the generated files to overwrite the files in the C client:
```bash ```bash