I am trying to write a grunt task with api identical to the unix mv command.
I would like to call him using grunt mv path/to/old/file path/to/new/file.
I was hoping that I could do this by contacting node process.argv, however, when I call a task using this API, grunt tries to treat it path/to/old/fileas another task that I am trying to run, it throws an error, which Warning: Task "path/to/old/file" not found. Use --force to continue.quits.
Is there a way to do what I'm trying to do?
source
share