Search code examples
goconfigurationyamltasktaskfile

Is it posible to configure Go Task runner to use fileextension yaml?


Is there a posibility to configure Go Task runner (https://taskfile.dev/) to use files with file extension "yaml" instead of "yml"?


Solution

  • Task author here.

    The only way to do it currently is by running:

    task --taskfile=Taskfile.yaml
    

    or

    task -t Taskfile.yaml
    

    That said, there's an open issue and a open PR about making .yaml extensions work automatically, so that will eventually work without the flag.