GitURL

GitURL

GitURL represents something that can be passed to git clone.

clone

method clone(Str :$to āŸ¶ File)

Calls git clone on the the url and returns the path to the cloned directory.

GitURL<https://github.com/spitsh/spitsh.git/>.clone.cd;
say ${ $*git status };
ParameterDescription
:$toPath to clone the repo to

name

method name( āŸ¶ Str)

Gets the last section of the url without its extension. This is the same as directory name git will use to clone into by default.

 say GitURL<https://github.com/nodejs/node.git>.name #->node

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.