We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431cc0a commit f6c8a1fCopy full SHA for f6c8a1f
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