Workstation API - v0.6.2
    Preparing search index...

    Function customTool

    • Build a local source tree into an executable. Source changes trigger a rebuild. The build must write {output}; {source} and {target} are also available in arguments.

      Parameters

      Returns CustomToolResource

      customTool("hello", { source: "tools/hello", target: "~/.local/bin/hello", build: { command: "go", args: ["build", "-o", "{output}", "{source}"] } })