Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #100 from ugexe/ugexe
IO::Path .extension, Proc[::Async] :$cwd param
  • Loading branch information
ugexe committed Jul 5, 2015
2 parents 319ddfb + c754919 commit f988b2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions lib/Type/IO/Path.pod
Expand Up @@ -54,6 +54,14 @@ the file relative to its directory.
say IO::Path.new("/etc/passwd").basename; # passwd
=head2 method extension
method extension(IO::Path:D:)
Returns the extension (if any) of the path object.
say IO::Path.new("docs/README.pod").extension; # pod
=head2 method dirname
method dirname(IO::Path:D:)
Expand Down
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 f988b2c

Please sign in to comment.