Skip to content

Support for multiline cmds #274

Description

Like in CircleCI config file I'd like to be able to define cmds over multiple lines

Here is an example how this looks in a CircleCI config yaml:

steps:
        - configure-python-version
        - checkout
        - run:
            name: EXECUTE ROBOT COMMAND
            command: |
                cd tests
                robot --include tagname \
                      --exclude TODO -e future -e obsolete -e libtest \
                      --console dotted \
                      --loglevel TRACE \
                      --noncritical not-ready \
                      --outputdir results/testsuite-name \
                      --name testsuite \
                      robot/test-suite-folder/

With tasks something like this fails with error documented below

# example Taskfile.yml
tasks:
    test_all:
      desc: RUN ALL ROBOT TESTS
      cmds: |
        robot -e future -e circleci -e TODO -e obsolete -d results -L TRACE \
              --noncritical not-ready robot/QUERY_SERVICE_TESTS

error

yaml: unmarshal errors:
  line 78: cannot unmarshal !!str `robot -...` into []*taskfile.Cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for support.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions