File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ second command, you can do
46
46
Bool :$merge = False,
47
47
Str:D :$enc = 'UTF-8',
48
48
Str:D $nl = "\n",
49
+ :$cwd = $*CWD,
49
50
*@args
50
51
) returns Proc:D
51
52
@@ -74,9 +75,9 @@ merged in C<$proc.out>.
74
75
75
76
= head2 method spawn
76
77
77
- method spawn(Proc:D *@args ($, *@)) returns Bool:D
78
+ method spawn(Proc:D *@args ($, *@), :$cwd = $*CWD ) returns Bool:D
78
79
79
- Runs the C < Proc > objects with the given command and argument list.
80
+ Runs the C < Proc > objects with the given command, argument list, and working directory .
80
81
81
82
= head2 method exitcode
82
83
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ the program through C<print>, C<say> and C<write>.
114
114
115
115
= head2 method start
116
116
117
- method start(Proc::Async:D:, :$scheduler = $*SCHEDULER) returns Promise:D
117
+ method start(Proc::Async:D:, :$scheduler = $*SCHEDULER, :$cwd = $*CWD ) returns Promise:D
118
118
119
119
Initiates spawning of the external program. Returns a promise that will be
120
120
kept with a L < Proc::Status|/type/Proc::Status > object once the external
You can’t perform that action at this time.
0 commit comments