| 1 | package Complete::App::perlmv; | ||
| 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 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 8 | 1 | our $DATE = '2026-11-06'; # DATE | |
| 9 | 1 | our $DIST = 'App-perlmv'; # DIST | |
| 10 | 1 | our $VERSION = '0.610'; # VERSION | |
| 11 | |||
| 12 | 1 | ▶ | use Exporter 'import'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | our @EXPORT_OK = qw( | |
| 14 | complete_perlmv_scriptlet | ||
| 15 | ); | ||
| 16 | |||
| 17 | 1 | our %SPEC; | |
| 18 | |||
| 19 | 1 | $SPEC{':package'} = { | |
| 20 | v => 1.1, | ||
| 21 | summary => 'Completion routines related to App::perlmv', | ||
| 22 | }; | ||
| 23 | |||
| 24 | $SPEC{complete_perlmv_scriptlet} = { | ||
| 25 | 1 | v => 1.1, | |
| 26 | summary => 'Complete from available scriptlet names', | ||
| 27 | args => { | ||
| 28 | word => { | ||
| 29 | schema => 'str*', | ||
| 30 | req => 1, | ||
| 31 | pos => 0, | ||
| 32 | }, | ||
| 33 | }, | ||
| 34 | result_naked => 1, | ||
| 35 | }; | ||
| 36 | 0 | ▶ | sub complete_perlmv_scriptlet { |
|
Subroutine
complete_perlmv_scriptlet: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 37 | 0 | require App::perlmv; | |
| 38 | 0 | require Complete::Util; | |
| 39 | |||
| 40 | 0 | my %args = @_; | |
| 41 | |||
| 42 | 0 | my $scriptlets = App::perlmv->new->find_scriptlets; | |
| 43 | |||
| 44 | Complete::Util::complete_hash_key( | ||
| 45 | word => $args{word}, | ||
| 46 | 0 | hash => $scriptlets, | |
| 47 | ); | ||
| 48 | } | ||
| 49 | |||
| 50 | 1 | 1; | |
| 51 | # ABSTRACT: Completion routines related to App::perlmv | ||
| 52 | |||
| 53 | __END__ | ||