| 1 | package CLI::Meta::less; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 7 | 1 | our $DATE = '2024-09-27'; # DATE | |
| 8 | 1 | our $DIST = 'CLI-Meta-less'; # DIST | |
| 9 | 1 | our $VERSION = '0.003'; # VERSION | |
| 10 | |||
| 11 | our $META = { | ||
| 12 | opts => { | ||
| 13 | 'search-skip-screen|a' => undef, | ||
| 14 | 'SEARCH-SKIP-SCREEN|A' => undef, | ||
| 15 | 0 | ▶ | 'buffers|b=i' => {completion=>sub { require Complete::Number; my %args = @_; Complete::Number::complete_int(word=>$args{word}, min=>1) } }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 16 | 'auto-buffers|B' => undef, | ||
| 17 | 'clear-screen|c' => undef, | ||
| 18 | 'CLEAR-SCREEN|C' => undef, | ||
| 19 | 'd|dumb' => undef, | ||
| 20 | 'color|D=s' => { | ||
| 21 | 0 | ▶ | completion=>sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 22 | 0 | require Complete::Sequence; | |
| 23 | 0 | my %args = @_; | |
| 24 | Complete::Sequence::complete_sequence( | ||
| 25 | sequence => [ | ||
| 26 | [qw/n s d u k/], | ||
| 27 | [0..15], | ||
| 28 | ['.'], | ||
| 29 | [0..15], | ||
| 30 | ], | ||
| 31 | word => $args{word}, | ||
| 32 | 0 | ); | |
| 33 | }, | ||
| 34 | }, | ||
| 35 | 'quit-at-eof|e' => undef, | ||
| 36 | 'QUIT-AT-EOF|E' => undef, | ||
| 37 | 'force|f' => undef, | ||
| 38 | 'quit-if-one-screen|F' => undef, | ||
| 39 | 'hilite-search|g' => undef, | ||
| 40 | 'HILITE-SEARCH|G' => undef, | ||
| 41 | 0 | ▶ | 'max-back-scroll|h=i' => {completion=>sub { require Complete::Number; my %args = @_; Complete::Number::complete_int(word=>$args{word}, min=>0) } }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 42 | 'ignore-case|i' => undef, | ||
| 43 | 'IGNORE-CASE|I' => undef, | ||
| 44 | 0 | ▶ | 'jump-target|j=i' => {completion=>sub { require Complete::Number; my %args = @_; Complete::Number::complete_int(word=>$args{word}) } }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 45 | 'status-column|j' => undef, | ||
| 46 | 'lesskey-file|k=s' => { | ||
| 47 | 0 | ▶ | completion=>sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 48 | 0 | require Complete::File; | |
| 49 | 0 | my %args = @_; | |
| 50 | 0 | Complete::File::complete_file(word=>$args{word}, filter=>'f'); | |
| 51 | }, | ||
| 52 | }, | ||
| 53 | 'quit-on-intr|K' => undef, | ||
| 54 | 'no-lessopen|L' => undef, | ||
| 55 | 'long-prompt|m' => undef, | ||
| 56 | 'LONG-PROMPT|M' => undef, | ||
| 57 | 'line-numbers|n' => undef, | ||
| 58 | 'log-file|o=s' => { | ||
| 59 | 0 | ▶ | completion=>sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 60 | 0 | require Complete::File; | |
| 61 | 0 | my %args = @_; | |
| 62 | 0 | Complete::File::complete_file(word=>$args{word}, filter=>'f'); | |
| 63 | }, | ||
| 64 | }, | ||
| 65 | 'LOG-FILE|O=s' => { | ||
| 66 | 0 | ▶ | completion=>sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 67 | 0 | require Complete::File; | |
| 68 | 0 | my %args = @_; | |
| 69 | 0 | Complete::File::complete_file(word=>$args{word}, filter=>'f'); | |
| 70 | }, | ||
| 71 | }, | ||
| 72 | 'pattern|p=s' => undef, | ||
| 73 | 'prompt|P=s' => undef, | ||
| 74 | 'quiet|silent|q' => undef, | ||
| 75 | 'QUIET|SILENT|Q' => undef, | ||
| 76 | 'raw-control-chars|r' => undef, | ||
| 77 | 'RAW-CONTROL-CHARS|R' => undef, | ||
| 78 | 'squeeze-blank-lines|s' => undef, | ||
| 79 | 'chop-blank-lines|S' => undef, | ||
| 80 | 'tag|t=s' => undef, | ||
| 81 | 'tag-file|T=s' => { | ||
| 82 | 0 | ▶ | completion=>sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 83 | 0 | require Complete::File; | |
| 84 | 0 | my %args = @_; | |
| 85 | 0 | Complete::File::complete_file(word=>$args{word}, filter=>'f'); | |
| 86 | }, | ||
| 87 | }, | ||
| 88 | 'underline-special|u' => undef, | ||
| 89 | 'UNDERLINE-SPECIAL|U' => undef, | ||
| 90 | 'hilite-unread|w' => undef, | ||
| 91 | 'HILITE-UNREAD|W' => undef, | ||
| 92 | 0 | ▶ | 'tabs|x=i' => {completion=>sub { require Complete::Number; my %args = @_; Complete::Number::complete_int(word=>$args{word}, min=>0) } }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 93 | 'no-init|X' => undef, | ||
| 94 | 0 | ▶ | 'max-forw-scroll|y=i' => {completion=>sub { require Complete::Number; my %args = @_; Complete::Number::complete_int(word=>$args{word}, min=>0) } }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 95 | 1 | 'window|z=s' => undef, | |
| 96 | |||
| 97 | #'quotes|"=s' => undef, # problematic with Getopt::Long option? | ||
| 98 | 'quotes=s' => undef, | ||
| 99 | #'tilde|~=s' => undef, # problematic with Getopt::Long option? | ||
| 100 | 'tilde=s' => undef, | ||
| 101 | #'shift|#=s' => undef, # problematic with Getopt::Long option? | ||
| 102 | 'tilde=s' => undef, | ||
| 103 | 'follow-name' => undef, | ||
| 104 | 'no-keypad' => undef, | ||
| 105 | 'no-bakslash' => undef, | ||
| 106 | |||
| 107 | 'help|?' => undef, | ||
| 108 | 'V|version' => undef, | ||
| 109 | }, | ||
| 110 | }; | ||
| 111 | |||
| 112 | 1 | 1; | |
| 113 | # ABSTRACT: Metadata for 'less' Unix commnd | ||
| 114 | |||
| 115 | __END__ | ||