« App/lcpan/Cmd/author_mods_by_other_author_rdep_count.pm
↑ Summary
App/lcpan/Cmd/x_mentions_for_mod.pm »
| 1 | package App::lcpan::Cmd::db_path; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | require App::lcpan; | |
| 8 | |||
| 9 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 10 | 1 | our $DATE = '2023-09-26'; # DATE | |
| 11 | 1 | our $DIST = 'App-lcpan'; # DIST | |
| 12 | 1 | our $VERSION = '1.074'; # VERSION | |
| 13 | |||
| 14 | 1 | our %SPEC; | |
| 15 | |||
| 16 | 1 | $SPEC{'handle_cmd'} = { | |
| 17 | v => 1.1, | ||
| 18 | summary => 'Return database path that is used', | ||
| 19 | description => <<'_', | ||
| 20 | |||
| 21 | This is a convenience subcommand for use in, e.g. command-line oneliners. | ||
| 22 | |||
| 23 | _ | ||
| 24 | args => { | ||
| 25 | %App::lcpan::common_args, | ||
| 26 | }, | ||
| 27 | tags => [], | ||
| 28 | }; | ||
| 29 | 0 | ▶ | sub handle_cmd { |
|
Subroutine
handle_cmd: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | 0 | my %args = @_; | |
| 31 | |||
| 32 | 0 | my $state = App::lcpan::_init(\%args, 'ro'); | |
| 33 | 0 | [200, "OK", App::lcpan::_db_path($state->{cpan}, $state->{index_name})]; | |
| 34 | } | ||
| 35 | |||
| 36 | 1 | 1; | |
| 37 | # ABSTRACT: Return database path that is used | ||
| 38 | |||
| 39 | __END__ | ||