shenwei356 / rush

A cross-platform command-line tool for executing jobs in parallel
https://github.com/shenwei356/rush
MIT License
846 stars 63 forks source link

error "echo %TASKS% | rush zip -@ {}.zip < {}_input.txt" #23

Closed jonnyyu closed 5 years ago

jonnyyu commented 5 years ago

I want to parallel running 2 zips with individual input file list on Windows: I have debug_input.txt and release_input.txt in same directory

Here is how I write the code:

Set TASKS=debug release echo %TASKS% | rush zip -@ {}.zip < {}_input.txt -D " " --dry-run

but it shows: The system cannot find the file specified.

if I run echo %TASKS% | rush zip -@ {}.zip -D " " --dry-run it shows unknown shorthand flag: '@' in -@

looks like I need escape for the '@', I tried

echo %TASKS% | rush zip -\@ {}.zip -D " " --dry-run still unknown shorthand flag: '\' in -\@

how to write this rush command correctly?thx!

shenwei356 commented 5 years ago

Please read some basic examples. You need " to wrap the commands.

Set TASKS=debug release
echo %TASKS% | rush "zip -@ {}.zip < {}_input.txt " -D " " --dry-run
shenwei356 commented 5 years ago

I close this