Perinci/Sub/XCompletion/unix_user_or_uid.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 86.6% 13 / 15 CC 1 SCAR 0.7
CC
1
Cov
82%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Perinci/Sub/XCompletion/unix_user.pm ↑ Summary Sah/Schema/unix/dirname.pm »
1 package Perinci::Sub::XCompletion::unix_user_or_uid;
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 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8 our $DATE = '2024-11-15'; # DATE
9 our $DIST = 'Sah-SchemaBundle-Unix'; # DIST
10 our $VERSION = '0.022'; # VERSION
11  
12 0 ▶use Complete::Unix qw(complete_user complete_uid);
Subroutine BEGIN: called CC=1 SCAR=2.6
13 use Complete::Util qw(combine_answers);
14  
15 our %SPEC;
16  
17 $SPEC{gen_completion} = {
18 v => 1.1,
19 };
20 sub gen_completion {
21 my %fargs = @_;
22 sub {
23 my %cargs = @_;
24 combine_answers(
25 complete_user(%cargs, %fargs),
26 complete_uid (%cargs, %fargs),
27 );
28 };
29 }
30  
31 1;
32 # ABSTRACT: Generate completion for Unix user/UID
33  
34 __END__
« Perinci/Sub/XCompletion/unix_user.pm ↑ Summary Sah/Schema/unix/dirname.pm »