ptlis/shell-command

Feature Idea: Set working directory of command

Closed this issue ยท 2 comments

Thanks for the package ๐Ÿ‘

I have a feature idea: It would be nice to have an option to change the working directory of a command.

This way an app could stay in the current working directory, but execute a binary from within another directory. This is often useful when running multiple tools which require different (relative oder absolute) entry points themself.

ptlis commented

Hi @pixelbrackets, this library already supports specifying the current working directory via the CommandBuilder::setCwd method.

Is this what you need, or am I misunderstanding your request?

Ha, cool, thats it. Tested it and wrote a quick documentation PR ๐Ÿ‘