| 1 | package Perinci::Sub::XCompletion::dirname; | ||
| 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 | ▶ | use Complete::Util qw(hashify_answer); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use Complete::File qw(complete_dir); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 11 | 1 | our $DATE = '2023-11-18'; # DATE | |
| 12 | 1 | our $DIST = 'Perinci-Sub-XCompletion'; # DIST | |
| 13 | 1 | our $VERSION = '0.106'; # VERSION | |
| 14 | |||
| 15 | 1 | our %SPEC; | |
| 16 | |||
| 17 | $SPEC{gen_completion} = { | ||
| 18 | 1 | v => 1.1, | |
| 19 | }; | ||
| 20 | 0 | ▶ | sub gen_completion { |
|
Subroutine
gen_completion: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | 0 | my %fargs = @_; | |
| 22 | 0 | ▶ | sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 23 | 0 | my %cargs = @_; | |
| 24 | 0 | hashify_answer( | |
| 25 | complete_dir(%cargs, %fargs), | ||
| 26 | {path_sep => '/'}, | ||
| 27 | ); | ||
| 28 | 0 | }; | |
| 29 | } | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | # ABSTRACT: Generate completion for directory name | ||
| 33 | |||
| 34 | __END__ | ||