1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):
[ ] N
[X] Y
fix #14
2. What is the scope of this PR (e.g. component or file name):
function KCLCmdInstalled
file: src/main/java/io/kusionstack/kcl/util/KCLBinaryUtil.java
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
Call method KCLCmdInstalled to serch for kcl commands in the list of paths available in the PATH environment.
4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):
[X] N
[ ] Y
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)
[X] Manual test (add detailed scripts or steps below)
[ ] Other
If the kcl and kcl-fmt commands are found in the path the option is made available and the location of the command is logged. If they are not found an error is logged stating that kcl is not installed.
1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):
fix #14
2. What is the scope of this PR (e.g. component or file name):
function
KCLCmdInstalled
file:src/main/java/io/kusionstack/kcl/util/KCLBinaryUtil.java
3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):
Call method KCLCmdInstalled to serch for kcl commands in the list of paths available in the PATH environment.
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:
If the kcl and kcl-fmt commands are found in the path the option is made available and the location of the command is logged. If they are not found an error is logged stating that kcl is not installed.