kcl-lang / cli

The KCL Command Line Interface (CLI).
https://kcl-lang.io
Apache License 2.0
19 stars 13 forks source link

feat: add single module folder with kcl mod file with entries config #14

Closed Peefy closed 10 months ago

Peefy commented 10 months ago

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

feat: add single module folder with kcl mod file with entries config

The module folder

$ tree me

me
├── kcl.mod
├── kcl.mod.lock
└── svc
    └── main.k
$ cat me/kcl.mod

[package]
name = "me"
edition = "0.0.1"
version = "0.0.1"

[profile]
entries = [
    "svc/main.k"
]

Run the command:

$ kcl run me

The_first_kcl_program: Hello World!

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

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

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: