sparrlets
Sparrlets
Sparrlets are Git based Sparrowdo scenarios.
How it works?
Create a sparrowdo scenario
$ nano sparrowfile
my $name = config<name>;
bash "echo Hi $name, I am Sparrlet"
$ nano config.pl6
{
name => "Stranger"
}
Commit your code to Git
$ git init .
$ git add sparrowfile config.pl6
$ git commit -a -m 'My Sparrlet Scenario'
Push you code to remote repository
$ git remote add origin https://github.com/melezhik/sparrlet-example.git
$ git push origin master
Run sparrlet with sparrowdo client
$ sparrowdo --git=https://github.com/melezhik/sparrlet-example.git
Sparrlet configuration
Create config.pl6 file in $CWD directory and it will be copied into sparrlet environment during execution.
This is how you override default sparrlets settings:
$ nano config.pl6
{
name => "Alexey"
}
$ sparrowdo --git=https://github.com/melezhik/sparrlet-example.git
Caveats
You need to install edge version of Sparrowdo (
zef install https://github.com/melezhik/sparrowdo.git
) to start playing with sparrletsSparrlets are alpha feature, don't blame me if something goes awry :)), but I promise to response to GH issues :))