kcl-lang / intellij-kcl

IntelliJ IDEA KCL Extension
https://kcl-lang.io
11 stars 11 forks source link

Fix kcl cmd location #15

Closed prahaladramji closed 1 year ago

prahaladramji commented 1 year ago

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.