blib/lib/Acme/CPANModules/Parse/UnixShellCommandLine.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Acme::CPANModules::Parse::UnixShellCommandLine;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7 1 our $DATE = '2021-10-01'; # DATE
8 1 our $DIST = 'Acme-CPANModules-Parse-UnixShellCommandLine'; # DIST
9 1 our $VERSION = '0.002'; # VERSION
10  
11 1 our $LIST = {
12 summary => "Modules that parse command-line like Unix shells",
13 description => <<'_',
14  
15 Sometimes you need to parse a Unix shell command-line string, e.g. when you want
16 to break it into "words".
17  
18 In general I recommend <pm:Text::ParseWords> as it is a core module. If you want
19 a little more speed, try <pm:Parse::CommandLine::Regexp> (see reference to
20 benchmark in See Also).
21  
22 _
23 entries => [
24 {
25 module=>'Complete::Bash',
26 description => <<'_',
27  
28 Its `parse_cmdline()` function can break a command-line string into words. This
29 function is geared for tab completion, so by default it also breaks on some
30 other word-breaking characters like "=", "@", and so on. Probably not what you
31 want generally, unless you are working with tab completion.
32  
33 _
34 },
35 {
36 module=>'Complete::Zsh',
37 },
38 {
39 module=>'Complete::Fish',
40 },
41 {
42 module=>'Complete::Tcsh',
43 },
44 {
45 module=>'Text::ParseWords',
46 description => <<'_',
47  
48 This core module can split string into words with customizable quoting character
49 and support for escaping using backslash. Its `shellwords()` function is
50 suitable for breaking command-line string into words.
51  
52 _
53 },
54 {
55 module=>'Parse::CommandLine',
56 },
57 {
58 module=>'Parse::CommandLine::Regexp',
59 },
60 ],
61 };
62  
63 1 1;
64 # ABSTRACT: Modules that parse command-line like Unix shells
65  
66 __END__
↑ Summary