-
Notifications
You must be signed in to change notification settings - Fork 119
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
feat: impl query tools. #59
Conversation
d45e80e
to
055aca3
Compare
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
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
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
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
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_file
api benchmark result as follows: