Tekton YAML File BashSupportPro

Hello,

I’m not sure if a lot of people use this, but, Tekton is a relatively new technology and it works using YAML files. Within the YAML files are areas where you can use bash in-line after the script property. Here’s an example:

---
deploy:
  image: <some image>
  script: |
  #!/usr/bin/env bash
  echo "hello world!"
---

I was wondering if it would be possible to have BashSupportPro recognize these blocks of in-line bash scripts whenever a YAML file is opened.

Let me know if you would like to know more information.

Thank you!

Thanks for reporting!
I don’t think that the BashSupport Pro plugin is the best place to inject the Bash language into Yaml. The best place would be the JSON schema attached to the Tekton file (is there already one?).
For example, this would automatically add the injection for the script property:

// ...
"script": {
    "type": "string",
    "x-intellij-language-injection": "BashSupport Pro Shell Script"
}

If there’s no schema yet, you could also inject the Bash language manually via Alt+Enter.