File Coverage

blib/lib/Acme/CPANModules/OpeningFileInApp.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Acme::CPANModules::OpeningFileInApp;
2              
3 1     1   413899 use strict;
  1         3  
  1         162  
4              
5             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6             our $DATE = '2023-12-19'; # DATE
7             our $DIST = 'Acme-CPANModules-OpeningFileInApp'; # DIST
8             our $VERSION = '0.001'; # VERSION
9              
10             our $LIST = {
11             summary => 'List of modules to open a file with appropriate application',
12             entries => [
13             {
14             module => 'Desktop::Open',
15             description => <<'MARKDOWN',
16              
17             This module tries to select the appropriate application to open a file: using
18             `start` (on Windows) or `xdg-open` (on other OS, if available), the falls back
19             to .
20              
21             See which includes a CLI for this module:
22             .
23              
24             MARKDOWN
25             },
26              
27             {
28             module => 'Spreadsheet::Open',
29             description => <<'MARKDOWN',
30              
31             Similar to , but limiting the apps to spreadsheet
32             applications.
33              
34             MARKDOWN
35             },
36              
37             {
38             module => 'App::Open',
39             scripts => ['openit'],
40             description => <<'MARKDOWN',
41              
42             This module and tool requires configuration beforehand.
43              
44             MARKDOWN
45             },
46              
47             {
48             module => 'Open::This',
49             scripts => ['ot'],
50             description => <<'MARKDOWN',
51              
52             This module (and the included tool) is geared upon opening a Perl
53             source code file with a browser. You can specify a module name (e.g.
54             `Foo::Bar`), a qualified function name (`Foo::Bar::func_name()`), or a sentence
55             copy-pasted from `git-grep` or stack trace output.
56              
57             MARKDOWN
58             },
59              
60             {
61             module => 'Browser::Open',
62             description => <<'MARKDOWN',
63              
64             A web browser can open many types of files, so this application is sometimes
65             appropriate. The module will pick an available browser. You don\'t have to
66             specify the path in URL form, e.g. `file:/path/to/file`; the module recognizes
67             standard `/unix/path/syntax`.
68              
69             See which provides a simple CLI for the module:
70             .
71              
72             MARKDOWN
73             },
74             ],
75             };
76              
77             1;
78             # ABSTRACT: List of modules to open a file with appropriate application
79              
80             __END__