Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implement --nodeps and --notests, fixes GH-5

  • Loading branch information...
commit 1b86a1171d37e4ae104060565ceaf49fe1fd5ee3 1 parent 9b5ddfd
@tadzik authored
Showing with 10 additions and 11 deletions.
  1. +10 −11 bin/panda
View
21 bin/panda
@@ -2,15 +2,6 @@
use Shell::Command;
use Panda;
-sub installprojects($panda, @args) {
- for @args -> $x {
- try {
- $panda.resolve($x);
- CATCH { say $! }
- };
- }
-}
-
sub listprojects($panda) {
for $panda.ecosystem.project-list -> $p {
my $x = $panda.ecosystem.get-project($p);
@@ -84,9 +75,17 @@ my $panda;
);
}
+# allow switches after positionals
+@*ARGS = @*ARGS.grep(/^ '-'/), @*ARGS.grep(/^ <-[-]>/);
+
#= Install the specified modules
-multi MAIN ('install', *@modules) {
- installprojects($panda, @modules);
+multi MAIN ('install', *@modules, Bool :$notests, Bool :$nodeps) {
+ for @modules -> $x {
+ try {
+ $panda.resolve($x, :$notests, :$nodeps);
+ CATCH { say $! }
+ };
+ }
}
#= List all available modules
Please sign in to comment.
Something went wrong with that request. Please try again.