Skip to content

why is the following not working? #1492

@bayeslearnerold

Description

@bayeslearnerold

It seems
USER_NAME=abc task ctx:greet_user works on linux
but
task ctx:greet_user USER_NAME=abc does not work on linux.

version: '3'

tasks:
  greet_user:
    desc: "Greet the user with a name."
    vars:
      USER_NAME:
        sh: 'echo "${USER_NAME:-DefaultUser}"'
    cmds:
      - echo "Hello, {{.USER_NAME}}!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions