Skip to content

Feat/interface#294

Merged
Peefy merged 2 commits into
kcl-lang:mainfrom
f4z3r:feat/interface
May 3, 2026
Merged

Feat/interface#294
Peefy merged 2 commits into
kcl-lang:mainfrom
f4z3r:feat/interface

Conversation

@f4z3r
Copy link
Copy Markdown
Contributor

@f4z3r f4z3r commented May 3, 2026

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

  • N
  • Y

See kcl-lang/kcl#388

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

Improving ergonomics and features supported by the Lua SDK.

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

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

Renamed the exec_program to run to be in line with mature SDKs such as the Go one, and have nicer function naming. Allow to pass either a simple file path or an array of file paths to run. Also add format function in line with other SDK's format functions.

Improved README to be nicer to get started with the SDK.

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

  • N
  • Y

exec_program renamed to run.

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

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

f4z3r added 2 commits May 3, 2026 17:26
Signed-off-by: Jakob Beckmann <f4z3r-github@pm.me>
Signed-off-by: Jakob Beckmann <f4z3r-github@pm.me>
@f4z3r
Copy link
Copy Markdown
Contributor Author

f4z3r commented May 3, 2026

I will update to a service oriented implementation in the coming week, so that it is more aligned with how it is implemented in Python and Go. I think it would be nice to have Lua ergonomic functions like run and format though, as opposed to only the raw Rust naming.

@Peefy
Copy link
Copy Markdown
Contributor

Peefy commented May 3, 2026

Good Job! Thank you!

@Peefy Peefy merged commit 8e51467 into kcl-lang:main May 3, 2026
8 of 9 checks passed
@f4z3r f4z3r deleted the feat/interface branch May 9, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants