Skip to content

Commit

Permalink
Add debug:* targets
Browse files Browse the repository at this point in the history
The idea for it comes from the commit description on
025c050
  • Loading branch information
AlexDaniel committed Aug 11, 2017
1 parent 025c050 commit 854b6cd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sakefile
Expand Up @@ -20,6 +20,16 @@ sub start-stop($task where ‘start-all’ | ‘stop-all’) {
}
}

task any(debug: X~ @bots».extension(.basename».lc), sub {
# TODO https://github.com/perlpilot/p6-sake/issues/7
my $bot = @*ARGS.grep({.starts-with: debug:})[0];
return without $bot;
$bot .= subst: /^debug:/, ;
$bot .= tc;
say Starting $bot;
run ./bin/$bot.p6, :env(|%*ENV, PERL6LIB => lib, DEBUGGABLE => 1)
}

task start-all, { start-stop start-all }
task stop-all, { start-stop stop-all }
task test, { run prove, --exec, perl6, t }
Expand Down

0 comments on commit 854b6cd

Please sign in to comment.