Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
:$cwd param for process spawning
  • Loading branch information
ugexe committed Jul 5, 2015
1 parent 5dc0865 commit c754919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/Type/Proc.pod
Expand Up @@ -46,6 +46,7 @@ second command, you can do
Bool :$merge = False,
Str:D :$enc = 'UTF-8',
Str:D $nl = "\n",
:$cwd = $*CWD,
*@args
) returns Proc:D
Expand Down Expand Up @@ -74,9 +75,9 @@ merged in C<$proc.out>.
=head2 method spawn
method spawn(Proc:D *@args ($, *@)) returns Bool:D
method spawn(Proc:D *@args ($, *@), :$cwd = $*CWD) returns Bool:D
Runs the C<Proc> objects with the given command and argument list.
Runs the C<Proc> objects with the given command, argument list, and working directory.
=head2 method exitcode
Expand Down
2 changes: 1 addition & 1 deletion lib/Type/Proc/Async.pod
Expand Up @@ -114,7 +114,7 @@ the program through C<print>, C<say> and C<write>.
=head2 method start
method start(Proc::Async:D:, :$scheduler = $*SCHEDULER) returns Promise:D
method start(Proc::Async:D:, :$scheduler = $*SCHEDULER, :$cwd = $*CWD) returns Promise:D
Initiates spawning of the external program. Returns a promise that will be
kept with a L<Proc::Status|/type/Proc::Status> object once the external
Expand Down

0 comments on commit c754919

Please sign in to comment.