Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specify a directory instead of a single file which the argument is -f when generate models #21

Closed
LeoLiuYan opened this issue Jul 12, 2022 · 1 comment

Comments

@LeoLiuYan
Copy link

LeoLiuYan commented Jul 12, 2022

Feature Request

Is your feature request related to a problem? Please describe:

Describe the feature you'd like:
When generate KCL models, we expect to use a directory argument that all source OpenAPI files in it.
And the command of kcl-openapi generate model should scan all files in the directory.

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

@LeoLiuYan LeoLiuYan changed the title Support Support specify a directory instread of a single file which argument is -f when generate models Jul 12, 2022
@LeoLiuYan LeoLiuYan changed the title Support specify a directory instread of a single file which argument is -f when generate models Support specify a directory instread of a single file which the argument is -f when generate models Jul 12, 2022
@LeoLiuYan LeoLiuYan changed the title Support specify a directory instread of a single file which the argument is -f when generate models Support specify a directory instead of a single file which the argument is -f when generate models Jul 18, 2022
@Peefy
Copy link
Contributor

Peefy commented Nov 20, 2023

Supported in the KCL new cli kcl import command. Ref: https://github.com/kcl-lang/cli/blob/main/pkg/options/import.go#L38

@Peefy Peefy closed this as completed Nov 20, 2023
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

No branches or pull requests

2 participants