lib/App/Greple/dig.pm

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/App/Greple/colors.pm ↑ Summary
1 =head1 NAME
2  
3 dig - Greple module for recursive search
4  
5 =head1 SYNOPSIS
6  
7 greple -Mdig pattern --dig directories ...
8  
9 greple -Mdig pattern --git ...
10  
11 =head1 DESCRIPTION
12  
13 Option B<--dig> searches all files under specified directories. Since
14 it takes all following arguments, place at the end of all options.
15  
16 It is possible to specify AND condition after directories, in B<find>
17 option format. Next command will search all C source files under the
18 current directory.
19  
20 $ greple -Mdig pattern --dig . -name *.c
21  
22 $ greple -Mdig pattern --dig . ( -name *.c -o -name *.h )
23  
24 If more compilicated file filtering is required, combine with
25 B<-Mselect> module.
26  
27 You can use B<--dig> option without module declaration by setting it
28 as autoload module in your F<~/.greplerc>.
29  
30 autoload -Mdig --dig --git
31  
32 Use B<--git-r> to search submodules recursively.
33  
34 =head1 OPTIONS
35  
36 =over 7
37  
38 =item B<--dig> I<directories> I<find-option>
39  
40 Specify at the end of B<greple> options, because all the rest is taken
41 as option for L<find(1)> command.
42  
43 =item B<--git> I<ls-files-option>
44  
45 Search files under git control. Specify at the end of B<greple>
46 options, because all the rest is taken as option for
47 L<git-ls-files(1)> command.
48  
49 =item B<--git-r> I<ls-files-option>
50  
51 Short cut for B<--git --recurse-submodules>.
52  
53 =back
54  
55 =head1 SEE ALSO
56  
57 L<App::Greple>
58  
59 L<App::Greple::select>
60  
61 L<find(1)>, L<git-ls-files(1)>
62  
63 =cut
64  
65 package App::Greple::dig;
66 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
67 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
68  
69 1 1;
70  
71 __DATA__
« lib/App/Greple/colors.pm ↑ Summary