• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kcl-lang / cli
35%
main: 35%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/kcl-lang.io/kcl-openapi-0.12.1
DEFAULT BRANCH: main
Repo Added 24 Oct 2023 03:12AM UTC
Token NzC29UHkLY3mkLSUgvV1Sya7e9PwEbHuL regen
Build 1025 Last
Files 12
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feat/run-error-format
branch: feat/run-error-format
CHANGE BRANCH
x
Reset
Sync Branches
  • feat/run-error-format
  • add-brew-and-scoop-template
  • add-ca-certificates-in-image
  • add-e2e-tests
  • add-kcl-lsp-release-using-hook
  • add-mod-spec
  • add-mod-update
  • add-run-entry-for-test
  • add-single-module-folder-with-kcl-mod-run-kind
  • bug/tini-arm64
  • bump-kcl-0.7
  • bump-kcl-080-stable
  • bump-kcl-090-beta
  • bump-kcl-go-090-latest
  • bump-kcl-go-version-to075
  • bump-kcl-version-0.7.0-alpha.2
  • bump-kpm-kcl-go-0.10.x-alpha
  • bump-kpm-version
  • bump-release-image
  • bump-version
  • bump-version-0.11.2
  • bump_go_124
  • bump_purego
  • chore-adjust-ci-test
  • chore-bump-kcl-0.12.2-with-musl
  • chore-bump-kcl-0.12.3
  • chore-bump-kcl-086
  • chore-bump-kcl-go-and-kpm-to-0.10.0-beta.2
  • chore-bump-kcl-go-version
  • chore-bump-kcl-openapi-version-and-keep-order
  • chore-bump-kcl-version-0.10.3
  • chore-bump-lib-085
  • chore-update-image-e2e-test-tag
  • chore-update-kcl-and-kcl-openapi-version
  • chore-update-version-to-0.11.1
  • chore/bump-deps-2026-08
  • chore/bump-kcl-deps-v0.13.0
  • chore/bump-kcl-openapi-0.11.1-version-0.12.10
  • chore/bump-kcl-openapi-to-v0.11.0
  • chore/bump-version-0.12.9
  • ci-concurrent-test
  • ci-image-test
  • delete_helpmsg_path
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/actions/download-artifact-6
  • dependabot/github_actions/actions/download-artifact-7
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/actions/setup-go-7
  • dependabot/github_actions/actions/upload-artifact-5
  • dependabot/github_actions/actions/upload-artifact-6
  • dependabot/github_actions/contributor-assistant/github-action-2.3.1
  • dependabot/github_actions/contributor-assistant/github-action-2.3.2
  • dependabot/github_actions/contributor-assistant/github-action-2.4.0
  • dependabot/github_actions/docker/build-push-action-5
  • dependabot/github_actions/docker/build-push-action-6
  • dependabot/github_actions/docker/build-push-action-7
  • dependabot/github_actions/docker/login-action-3
  • dependabot/github_actions/docker/login-action-3.4.0
  • dependabot/github_actions/docker/login-action-3.5.0
  • dependabot/github_actions/docker/login-action-3.6.0
  • dependabot/github_actions/docker/login-action-3.7.0
  • dependabot/github_actions/docker/login-action-4.0.0
  • dependabot/github_actions/docker/login-action-4.1.0
  • dependabot/github_actions/docker/login-action-4.2.0
  • dependabot/github_actions/docker/login-action-4.3.0
  • dependabot/github_actions/docker/login-action-4.4.0
  • dependabot/github_actions/docker/login-action-4.5.0
  • dependabot/github_actions/docker/login-action-4.5.1
  • dependabot/github_actions/docker/login-action-4.5.2
  • dependabot/github_actions/docker/login-action-4.6.0
  • dependabot/github_actions/docker/metadata-action-5
  • dependabot/github_actions/docker/metadata-action-5.10.0
  • dependabot/github_actions/docker/metadata-action-5.6.1
  • dependabot/github_actions/docker/metadata-action-5.7.0
  • dependabot/github_actions/docker/metadata-action-5.8.0
  • dependabot/github_actions/docker/metadata-action-5.9.0
  • dependabot/github_actions/docker/metadata-action-6.0.0
  • dependabot/github_actions/docker/metadata-action-6.1.0
  • dependabot/github_actions/docker/metadata-action-6.2.0
  • dependabot/github_actions/docker/setup-buildx-action-4
  • dependabot/github_actions/docker/setup-qemu-action-4
  • dependabot/github_actions/goreleaser/goreleaser-action-5
  • dependabot/github_actions/goreleaser/goreleaser-action-6
  • dependabot/github_actions/goreleaser/goreleaser-action-7
  • dependabot/go_modules/github.com/BurntSushi/toml-1.6.0
  • dependabot/go_modules/github.com/fatih/color-1.16.0
  • dependabot/go_modules/github.com/fatih/color-1.17.0
  • dependabot/go_modules/github.com/fatih/color-1.18.0
  • dependabot/go_modules/github.com/fatih/color-1.19.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.12.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.13.4
  • dependabot/go_modules/github.com/goccy/go-yaml-1.13.7
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.10
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.13
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.15
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.17
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.19
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.23
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.5
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.8
  • dependabot/go_modules/github.com/goccy/go-yaml-1.16.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.17.1
  • dependabot/go_modules/github.com/goccy/go-yaml-1.19.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.19.1
  • dependabot/go_modules/github.com/goccy/go-yaml-1.19.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.15.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.16.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.17.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.17.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.17.3
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.19.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.19.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.20.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.20.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.20.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.21.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.22.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.22.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.22.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.23.4
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.25.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.25.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.25.3
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.26.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.27.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.27.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.27.3
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.27.4
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.27.5
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.28.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.28.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.28.3
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.29.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.31.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.32.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.32.1
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.32.2
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.33.0
  • dependabot/go_modules/github.com/onsi/ginkgo/v2-2.33.1
  • dependabot/go_modules/github.com/onsi/gomega-1.31.1
  • dependabot/go_modules/github.com/onsi/gomega-1.32.0
  • dependabot/go_modules/github.com/onsi/gomega-1.33.0
  • dependabot/go_modules/github.com/onsi/gomega-1.33.1
  • dependabot/go_modules/github.com/onsi/gomega-1.34.0
  • dependabot/go_modules/github.com/onsi/gomega-1.34.2
  • dependabot/go_modules/github.com/onsi/gomega-1.35.1
  • dependabot/go_modules/github.com/onsi/gomega-1.36.0
  • dependabot/go_modules/github.com/onsi/gomega-1.36.1
  • dependabot/go_modules/github.com/onsi/gomega-1.36.2
  • dependabot/go_modules/github.com/onsi/gomega-1.37.0
  • dependabot/go_modules/github.com/onsi/gomega-1.38.0
  • dependabot/go_modules/github.com/onsi/gomega-1.38.1
  • dependabot/go_modules/github.com/onsi/gomega-1.38.2
  • dependabot/go_modules/github.com/onsi/gomega-1.39.0
  • dependabot/go_modules/github.com/onsi/gomega-1.39.1
  • dependabot/go_modules/github.com/onsi/gomega-1.40.0
  • dependabot/go_modules/github.com/onsi/gomega-1.41.0
  • dependabot/go_modules/github.com/onsi/gomega-1.42.0
  • dependabot/go_modules/github.com/onsi/gomega-1.42.1
  • dependabot/go_modules/github.com/onsi/gomega-1.43.0
  • dependabot/go_modules/github.com/onsi/gomega-1.43.1
  • dependabot/go_modules/github.com/onsi/gomega-1.44.0
  • dependabot/go_modules/github.com/otiai10/copy-1.14.0
  • dependabot/go_modules/github.com/otiai10/copy-1.14.1
  • dependabot/go_modules/github.com/spf13/cobra-1.10.0
  • dependabot/go_modules/github.com/spf13/cobra-1.10.2
  • dependabot/go_modules/github.com/spf13/cobra-1.8.0
  • dependabot/go_modules/github.com/spf13/cobra-1.8.1
  • dependabot/go_modules/github.com/spf13/cobra-1.9.1
  • dependabot/go_modules/github.com/spf13/pflag-1.0.10
  • dependabot/go_modules/github.com/spf13/pflag-1.0.6
  • dependabot/go_modules/github.com/spf13/pflag-1.0.7
  • dependabot/go_modules/github.com/spf13/pflag-1.0.9
  • dependabot/go_modules/github.com/stretchr/testify-1.10.0
  • dependabot/go_modules/github.com/stretchr/testify-1.11.0
  • dependabot/go_modules/github.com/stretchr/testify-1.12.0
  • dependabot/go_modules/github.com/stretchr/testify-1.12.1
  • dependabot/go_modules/golang.org/x/mod-0.18.0
  • dependabot/go_modules/golang.org/x/mod-0.19.0
  • dependabot/go_modules/golang.org/x/mod-0.20.0
  • dependabot/go_modules/golang.org/x/mod-0.21.0
  • dependabot/go_modules/golang.org/x/mod-0.22.0
  • dependabot/go_modules/golang.org/x/mod-0.23.0
  • dependabot/go_modules/golang.org/x/mod-0.25.0
  • dependabot/go_modules/golang.org/x/mod-0.26.0
  • dependabot/go_modules/golang.org/x/mod-0.27.0
  • dependabot/go_modules/golang.org/x/mod-0.28.0
  • dependabot/go_modules/golang.org/x/mod-0.29.0
  • dependabot/go_modules/golang.org/x/mod-0.30.0
  • dependabot/go_modules/golang.org/x/mod-0.31.0
  • dependabot/go_modules/golang.org/x/mod-0.32.0
  • dependabot/go_modules/golang.org/x/mod-0.33.0
  • dependabot/go_modules/golang.org/x/mod-0.34.0
  • dependabot/go_modules/golang.org/x/mod-0.35.0
  • dependabot/go_modules/golang.org/x/mod-0.36.0
  • dependabot/go_modules/golang.org/x/mod-0.37.0
  • dependabot/go_modules/golang.org/x/mod-0.38.0
  • dependabot/go_modules/golang.org/x/mod-0.40.0
  • dependabot/go_modules/golang.org/x/mod-0.41.0
  • dependabot/go_modules/golang.org/x/mod-0.42.0
  • dependabot/go_modules/gotest.tools/v3-3.5.2
  • dependabot/go_modules/kcl-lang.io/kcl-go-0.11.1
  • dependabot/go_modules/kcl-lang.io/kcl-go-0.11.2
  • dependabot/go_modules/kcl-lang.io/kcl-go-0.11.3
  • dependabot/go_modules/kcl-lang.io/kcl-go-0.8.2
  • dependabot/go_modules/kcl-lang.io/kcl-openapi-0.10.1
  • dependabot/go_modules/kcl-lang.io/kcl-openapi-0.10.2
  • dependabot/go_modules/kcl-lang.io/kcl-openapi-0.10.3
  • dependabot/go_modules/kcl-lang.io/kcl-openapi-0.12.1
  • dependabot/go_modules/kcl-lang.io/kcl-plugin-0.11.0
  • dependabot/go_modules/kcl-lang.io/kpm-0.11.2
  • dependabot/go_modules/kcl-lang.io/kpm-0.11.4
  • dependabot/go_modules/kcl-lang.io/kpm-0.12.4
  • dependabot/go_modules/kcl-lang.io/kpm-0.7.0
  • dependabot/go_modules/kcl-lang.io/kpm-0.9.0-rc.1
  • ench/209
  • enhance-clean-cmd
  • enhance-vet-cli-input
  • feat-add-diagnostic
  • feat-add-playgound-command
  • feat-add-queit-for-all-mod-cmd
  • feat-all-subcommands
  • feat-default-settings-file
  • feat-groupby-different-crd-version-files
  • feat-import-from-toml
  • feat-issue-296
  • feat-kcl-mod-rename-and-no-sum-check-flag
  • feat-kclx-cli-with-plugin
  • feat-plugin-framework
  • feat-run-command
  • feat-run-git-entry
  • feat-run-stdin-entry
  • feat-show-hidden-flag
  • feat-support-multiple-crd-import
  • feat-test-tool-cli
  • feat-toml-format
  • feat-xml-format
  • feat/fmt-dry-run
  • feat/issue-2047-xml-format
  • feat/lint-all-packages
  • feaure/add_force
  • file-expand-for-import-tool
  • fix-cli-doc
  • fix-cli-output-trunc
  • fix-client-default-logger-to-stdout
  • fix-completion-cmd
  • fix-crd-groupby
  • fix-entry-with-pkg-deps
  • fix-example-tests
  • fix-fail-test
  • fix-git-repo-run
  • fix-homebrew-formula-directory
  • fix-image-ci
  • fix-image-lib-home-env
  • fix-json-output-sort-keys
  • fix-kcl-arm64-image-release
  • fix-kcl-lsp-install-scirpts-on-windows
  • fix-missing-print
  • fix-missing-print-09
  • fix-oci-source
  • fix-run-echo
  • fix-run-npe
  • fix-wrong-artifact-env-in-dockerfile
  • fix-wrong-crd-import-options
  • fix/cli-232-override-comma-splitting
  • fix/issue-1868-import-identifier
  • fix/issue-1877-vet-external-flag
  • fix/issue-376-jsonparser-bump
  • fix/issue-386-version-suffix
  • fix/version-printing-issue-363
  • fix_image
  • fix_version
  • format-cli-documents
  • go_124
  • goreleaser-deprecation-fixes
  • init-version-option
  • issue2043-vet-cmd
  • kcl-arm64-image
  • kcl-arm64-image-test
  • kpm-related-cmd-migration
  • latest
  • login_stdin
  • main
  • mod-add-url
  • mod-graph-cmd
  • more-e2e-test
  • not_block_pr
  • patch-1
  • pull-mod-spec
  • refactor-cli-source-nil-err
  • refactor-image-release
  • refactor-mod-graph
  • refactor-vet-cli
  • refs/tags/v0.10.0-beta.1
  • refs/tags/v0.6.0
  • refs/tags/v0.6.0-alpha.4
  • refs/tags/v0.6.0-alpha.5
  • refs/tags/v0.6.0-alpha.6
  • refs/tags/v0.7.0
  • refs/tags/v0.7.0-alpha.1
  • refs/tags/v0.7.0-alpha.2
  • refs/tags/v0.7.0-beta.1
  • refs/tags/v0.7.0-beta.2
  • refs/tags/v0.7.1
  • refs/tags/v0.7.2
  • refs/tags/v0.7.3
  • refs/tags/v0.7.3-alpha.1
  • refs/tags/v0.7.4
  • refs/tags/v0.7.5
  • refs/tags/v0.8.0
  • refs/tags/v0.8.0-alpha.1
  • refs/tags/v0.8.0-beta.1
  • refs/tags/v0.8.1
  • refs/tags/v0.8.2
  • refs/tags/v0.8.3
  • refs/tags/v0.8.4
  • refs/tags/v0.8.5
  • refs/tags/v0.8.6
  • refs/tags/v0.8.7
  • refs/tags/v0.8.8
  • refs/tags/v0.8.9
  • refs/tags/v0.9.0
  • refs/tags/v0.9.0-alpha.1
  • refs/tags/v0.9.0-beta.1
  • refs/tags/v0.9.0-rc.1
  • refs/tags/v0.9.1
  • refs/tags/v0.9.2
  • refs/tags/v0.9.3
  • refs/tags/v0.9.4
  • refs/tags/v0.9.5
  • refs/tags/v0.9.6
  • refs/tags/v0.9.7
  • refs/tags/v0.9.8
  • release-0.7.1
  • release-0.9
  • release-090-tag
  • release-img
  • rename_registry
  • rm-modfile-update
  • run-mod-spec
  • server-command
  • set-log-to-stdout
  • support-add-rename
  • support-relative-path
  • supports-tls-flag
  • test-e2e-on-all-platforms
  • test-image-release
  • test-kcl-mod-pull-in-image
  • try-git-clone-in-kcl-image
  • unify-pull-cli
  • unify-run-cli
  • update_go_125
  • update_workflow
  • upgrade-goreleaser-version
  • zzz

08 Oct 2026 05:49PM UTC coverage: 35.085% (-0.2%) from 35.273%
37819584166

Pull #391

github

Peefy
test(cli): tighten two --error_format goldens to assert real content

The sarif golden asserted only the `$schema` line, which is present in
any SARIF document including one with no results at all -- so the suite
passed even if the runtime emitted zero diagnostics. Assert `ruleId`
instead, which is only emitted when a diagnostic result is actually
produced.

The pretty golden asserted `error[E2L23]: CompileError`, which is just
the default diagnostic a broken file produces with or without the flag.
Assert the rendered message instead.

Both replacements are still absent from the other formats' output, so the
discriminating profile of the five suites is unchanged.

Signed-off-by: Peefy <xpf6677@163.com>
Pull Request #391: feat(run): add --error_format flag to kcl run and kcl lint

1 of 7 new or added lines in 1 file covered. (14.29%)

394 of 1123 relevant lines covered (35.08%)

0.4 hits per line

Relevant lines Covered
Build:
Build:
1123 RELEVANT LINES 394 COVERED LINES
0.4 HITS PER LINE
Source Files on feat/run-error-format
  • Tree
  • List 12
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
37819584166 feat/run-error-format test(cli): tighten two --error_format goldens to assert real content The sarif golden asserted only the `$schema` line, which is present in any SARIF document including one with no results at all -- so the suite passed even if the runtime emitted... Pull #391 08 Oct 2026 05:53PM UTC Peefy github
35.08
37817238126 feat/run-error-format test(cli): add e2e coverage for --error_format; use Merge consistently The --error_format flag had no e2e coverage at all. Add one suite per diagnostic format (pretty, short, arcanist, sarif) plus one for an invalid value, each asserting the form... Pull #391 08 Oct 2026 05:35PM UTC Peefy github
35.08
37815371866 feat/run-error-format Merge remote-tracking branch 'kcl-lang/cli-main' into feat/run-error-format # Conflicts: # go.mod # go.sum # pkg/version/version.go Signed-off-by: Peefy <xpf6677@163.com> Pull #391 08 Oct 2026 05:21PM UTC Peefy github
35.08
37815065671 feat/run-error-format Merge remote-tracking branch 'kcl-lang/cli-main' into feat/run-error-format # Conflicts: # go.mod # go.sum # pkg/version/version.go Signed-off-by: Peefy <xpf6677@163.com> Pull #391 08 Oct 2026 05:19PM UTC claude github
35.26
37814300430 feat/run-error-format Merge remote-tracking branch 'kcl-lang/cli-main' into feat/run-error-format # Conflicts: # go.mod # go.sum # pkg/version/version.go Pull #391 08 Oct 2026 05:12PM UTC claude github
35.08
See All Builds (997)

Badge your Repo: cli

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc