Skip to content

Problem with escaping command arguments #225

@hz61p1

Description

@hz61p1

settings.json

{
  "task": {
    "outputTo": "output"
  }
}

Dockerfile

FROM node:22-bookworm
CMD ["bash"]

Taskfile.yaml

---
version: '3'

tasks:
  frontend.cli:
    cmds:
      - docker compose run --rm frontend-cli {{.CLI_ARGS}}

Click Run Task With Args, input npm -v, this generates the command docker compose run --rm frontend-cli 'npm -v'. If you set outputTo to terminal, the final command will be docker compose run --rm frontend-cli npm -v, аnd the result will be successful. The problem is on line taskfile.ts:261.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions