Skip to content

Support user input at runtime #92

Closed
Closed
@ebr

Description

@ebr

It would be great to pause and wait for user input, for subsequent use in the script:

test:
  cmds:
    - read name
    - echo "hi ${name}"
$ task test 
read name
task: Failed to run task "test": exit status 127

I also tried moving the read command to Taskvars, but still no luck. I suspect this is because execution of go-task does not allocate a TTY? Is there any way to do this currently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that could benefit from members of the community contributing their expertise or experience.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions