Skip to content

Use various runtimes for the script tool #1851

@k33g

Description

@k33g

It would be nice if we could create script (in toolsets) with our favorite language:

      - type: script
        shell:
          say_hello:
            description: A simple script that prints a greeting message.
            cmd: echo "👋 Hello, World! 😉"   
          say_hey:
            description: A simple script that prints a greeting message.
            cmd: echo "🎉 Hey there! 🤓"  

        node:
          vulcan_salute:
            description: A simple script that prints a vulcan greeting message.
            cmd: console.log("🖖 Peace and Prosper! 😉")   
        
        go:
          go_greet:
            description: A simple script that prints a greeting message in Go.
            cmd: |
              package main
              import "fmt"
              func main() {
                  fmt.Println("👋 Hello from Go! 🚀")
              }

or:

          vulcan_salute:
            description: A simple script that prints a vulcan greeting message.
            cmd: |
              #!/usr/bin/env node
              console.log("🖖 Peace and Prosper! 😉")   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions