-
Notifications
You must be signed in to change notification settings - Fork 153
feat: impl query tools. #59
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
Conversation
d45e80e to
055aca3
Compare
zong-zhe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
810627d to
6afc7db
Compare
6afc7db to
b60c9d3
Compare
658beab to
4e1ea53
Compare
ldxdl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
4e1ea53 to
0fb03bd
Compare
chai2010
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
zong-zhe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
70c4da5 to
4dfc986
Compare
4dfc986 to
d4bda14
Compare
zong-zhe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is the scope of this change (e.g. component or file name):
kclvm/tools/src/query/mod.rs,
kclvm/tools/src/query/override.rs
kclvm/tools/src/query/tests.rs
Provide a description of the change(e.g. more details, motivations or doc link):
KCL Rust version of the query tool, and provides query APIs to further build tools such as the query CLI.
The main API function involved is
override_file, the user can specify the file to be modified and the modification specification through this function. The specification mainly includes the path and modification value of the configuration to be modified.Does this change affect any open issues?(Y/N) and add issue references
Y, #54
Tests
Unit Tests
Test cases in kclvm/tools/src/query/tests.rs
Benchmark
Test cases in kclvm/tools/benches/benchmark.rs
The
override_fileapi benchmark result as follows: