We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecb44cf commit 32871e0Copy full SHA for 32871e0
lib/Mojolicious/Commands.pm
@@ -65,8 +65,10 @@ sub run {
65
# Find all available commands
66
my %all;
67
for my $ns (@{$self->namespaces}) {
68
- $all{substr $_, length "${ns}::"} //= $_->new->description
69
- for grep { _command($_) } find_modules($ns), find_packages($ns);
+ for my $pkg (find_modules($ns), find_packages($ns)) {
+ next unless _command($pkg);
70
+ $all{substr $pkg, length "${ns}::"} //= $pkg->new->description;
71
+ }
72
}
73
74
my @rows;
0 commit comments