Skip to content

Get run command from stdout #1415

@prihoda

Description

@prihoda

Hi, I'm often running multiple commands in dvc run, which can be done by wrapping the command in quotes:

dvc run -d in.txt -o out.txt 'cp in.txt out.txt; for i in {1..10}; do echo ${i} >> out.txt; done'
# Running command:
# 	cp in.txt out.txt; for i in {1..10}; do echo ${i} >> out.txt; done

It would be nice if I could input the command using stdout prompt instead, e.g. by running:

dvc run -d in.txt -o out.txt --interactive
# > Enter command:
cp in.txt out.txt; for i in {1..10}; do echo ${i} >> out.txt; done
# Running command:
# 	cp in.txt out.txt; for i in {1..10}; do echo ${i} >> out.txt; done

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions