]>
iEval git - app-zealc.git/blob - lib/App/Zealc/Command/expand.pm
df149db38d80a545979efc557907984dcd14ca3a
1 package App
::Zealc
::Command
::expand
;
7 our $VERSION = '0.000_001';
9 use App
::Zealc
'-command';
11 sub usage_desc
{ "%c expand %o pattern"}
14 (['family|f!', 'Include docset family in output']),
18 my ($self, $opts, $args) = @_;
20 $self->usage_error("No pattern specified") unless @args;
21 $self->usage_error("Too many arguments") if @args > 1;
25 my ($self, $opts, $args) = @_;
26 my @results = sort { $a->name cmp $b->name } $self->app->zeal->query($args->[0]);
27 exit 1 unless @results;
29 my $family = $_->docset->family;
30 $opts->{family
} ?
"$family:" . $_->name : $_->name
41 App::Zealc::Command::expand - list all documents that match a pattern
51 zealc expand -f perl_os
57 The expand command lists all documents that match a case-insensitive
60 A SQL LIKE pattern is similar to a shell glob. The "%" character
61 matches zero or more characters (like "*" in a shell glob or ".*" in a
62 regex) and "_" matches exactly one character (like "?" in a shell glob
63 or "." in a regex). Matching is case-insensitive.
71 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
73 =head1 COPYRIGHT AND LICENSE
75 Copyright (C) 2015 by Marius Gavrilescu
77 This library is free software; you can redistribute it and/or modify
78 it under the same terms as Perl itself, either Perl version 5.20.1 or,
79 at your option, any later version of Perl 5 you may have available.
This page took 0.070595 seconds and 5 git commands to generate.