From e9c23c2b903f8c371dacdd2ba1e727808183f42c Mon Sep 17 00:00:00 2001 From: inhere Date: Fri, 11 Dec 2020 00:08:03 +0800 Subject: [PATCH] update zh readme --- .github/workflows/go.yml | 26 +++++++++++++++++++++----- README.zh-CN.md | 5 +++-- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f7c0757..5b50580 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,9 +27,25 @@ jobs: go-version: ${{ matrix.go_version }} # id: go - - name: Get dependencies - run: | - go get -v -t -d ./... + - name: Run unit tests + # run: go test -v -cover ./... + # must add " for profile.cov on windows OS + run: go test -v -coverprofile="profile.cov" ./... - - name: Run tests - run: go test -v -cover ./... + - name: Send coverage + uses: shogo82148/actions-goveralls@v1 + if: ${{ matrix.os == 'ubuntu-latest' }} + with: + path-to-profile: profile.cov + flag-name: Go-${{ matrix.go_version }} + parallel: true + + # notifies that all test jobs are finished. + # https://github.com/shogo82148/actions-goveralls + finish: + needs: test + runs-on: ubuntu-latest + steps: + - uses: shogo82148/actions-goveralls@v1 + with: + parallel-finished: true \ No newline at end of file diff --git a/README.zh-CN.md b/README.zh-CN.md index 845734d..e8ddda8 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -150,7 +150,7 @@ color.Reset() ## 基础颜色方法 -> 支持在windows `cmd.exe` 使用 +> 支持在windows `cmd.exe` `powerShell` 等终端使用 - `color.Bold` - `color.Black` @@ -174,7 +174,7 @@ color.Yellow.Println("yellow message") ## 扩展风格方法 -> 支持在windows `cmd.exe` 使用 +> 支持在windows `cmd.exe` `powerShell` 等终端使用 - `color.Info` - `color.Note` @@ -401,6 +401,7 @@ s.Printf("style with %s\n", "options") - `IsConsole(w io.Writer)` Determine whether w is one of stderr, stdout, stdin - `HexToRgb(hex string) (rgb []int)` Convert hex color string to RGB numbers - `RgbToHex(rgb []int) string` Convert RGB to hex code +- 更多请查看文档 https://pkg.go.dev/github.com/gookit/color ## Gookit 工具包