diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0a8ddf..86cfde7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,16 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: kcl Installation - run: wget -q https://kcl-lang.io/script/install.sh -O - | /bin/bash + - name: KCL Installation + run: wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash - uses: actions/setup-go@v1 with: go-version: "1.19" - - name: kpm Installation - run: go install kcl-lang.io/kpm@latest - - name: Example tests shell: bash -ieo pipefail {0} run: PATH=$PATH:$HOME/go/bin ./scripts/test.sh diff --git a/README-zh.md b/README-zh.md index 55b7e39..047bcd5 100644 --- a/README-zh.md +++ b/README-zh.md @@ -2,7 +2,7 @@ [英语](README.md) | [中文](README-zh.md) -Konfig 是 KCL 配置中基础设施配置的存储库。Konfig 提供给用户开箱即用、高度抽象的配置界面,模型库最初朴素的出发点就是改善 YAML 用户的效率和体验,我们希望通过将代码更繁杂的模型抽象封装到统一的模型中,从而简化用户侧配置代码的编写。当然您也可以使用 kpm 工具将 Konfig 代码作为依赖集成到您的配置代码中。 +Konfig 是 KCL 配置中基础设施配置的存储库。Konfig 提供给用户开箱即用、高度抽象的配置界面,模型库最初朴素的出发点就是改善 YAML 用户的效率和体验,我们希望通过将代码更繁杂的模型抽象封装到统一的模型中,从而简化用户侧配置代码的编写。当然您也可以使用 KCL 工具将 Konfig 代码作为依赖集成到您的配置代码中。 更多细节可参考:[《模型概览》](https://kcl-lang.io/docs/user_docs/guides/working-with-konfig/overview) @@ -45,7 +45,7 @@ Konfig 是 KCL 配置中基础设施配置的存储库。Konfig 提供给用户 ## 前置条件 -安装 [kpm](https://kcl-lang.io/docs/user_docs/guides/package-management/installation) +安装 [KCL](https://kcl-lang.io/docs/user_docs/guides/package-management/installation) ## 快速开始 diff --git a/README.md b/README.md index 4040a4c..d2328ae 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ The overall structure of the configuration library is as follows: ## Prerequisites -Install [kpm](https://kcl-lang.io/docs/user_docs/guides/package-management/installation) +Install [KCL](https://kcl-lang.io/docs/user_docs/getting-started/install) ## Quick Start diff --git a/scripts/test.sh b/scripts/test.sh index accf7ab..6badf0c 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -2,14 +2,13 @@ # Stop on error. -# Note: Before you start tests, please install kcl and kpm +# Note: Before you start tests, please install kcl # kcl installation: https://kcl-lang.io/docs/user_docs/getting-started/install -# kpm Installation: https://kcl-lang.io/docs/user_docs/guides/package-management/installation set -e find ./examples -name "kcl.mod" -exec dirname {} \; | while read -r dir; do - if (cd "$dir" && kpm run); then + if (cd "$dir" && kcl run); then echo "\033[32mTest SUCCESSED - $dir\033[0m\n" else echo "\033[31mTest FAILED - $dir\033[0m\n"