Skip to content

Commit

Permalink
Merge pull request #3 from kcl-lang/bump-kpm-to-kcl
Browse files Browse the repository at this point in the history
chore: bump kpm to kcl
  • Loading branch information
Peefy authored Nov 15, 2023
2 parents b878977 + 3d5cab1 commit a3c8ac1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

## 快速开始

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a3c8ac1

Please sign in to comment.