kcl-lang / kcl-go

KCL Go SDK
https://pkg.go.dev/kcl-lang.io/kcl-go@main
Apache License 2.0
49 stars 25 forks source link

feat(native): ✨ add RunPaths #344

Closed ghostsquad closed 2 months ago

ghostsquad commented 2 months ago

allows users to easily specify multiple files, like how the KCL CLI allows specifying multiple files.

ref: https://www.kcl-lang.io/docs/next/reference/lang/tour#multi-file-compilation

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

fix https://github.com/kcl-lang/kcl/issues/1466

2. What is the scope of this PR (e.g. component or file name):

/pkg/native/api

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

Allows users to pass in multiple paths, like how the CLI behaves. Ref: https://www.kcl-lang.io/docs/next/reference/lang/tour#multi-file-compilation

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

see /pkg/native/api_test.go

github-actions[bot] commented 2 months ago


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9772463701

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/native/api.go 7 8 87.5%
<!-- Total: 7 8 87.5% -->
Totals Coverage Status
Change from base Build 9739398846: 0.03%
Covered Lines: 5653
Relevant Lines: 17171

💛 - Coveralls