| 1 | ## no critic (RequireUseStrict) | ||
| 2 | package Bash::Completion::Plugins::dzil; | ||
| 3 | { | ||
| 4 | 2 | $Bash::Completion::Plugins::dzil::VERSION = '0.02'; | |
| 5 | } | ||
| 6 | |||
| 7 | ## use critic (RequireUseStrict) | ||
| 8 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 2 | ▶ | use parent 'Bash::Completion::Plugins::App::Cmd'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 2 | ▶ | use Bash::Completion::Utils qw(command_in_path); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 0 | ▶ | sub should_activate { |
|
Subroutine
should_activate: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 15 | 0 | return [ grep { command_in_path($_) } qw(dzil) ]; | |
| 16 | } | ||
| 17 | |||
| 18 | 1 | ▶ | sub command_class { 'Dist::Zilla::App' } |
|
Subroutine
command_class: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | |||
| 20 | 2 | 1; | |
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | =pod | ||
| 25 | |||
| 26 | =head1 NAME | ||
| 27 | |||
| 28 | Bash::Completion::Plugins::dzil - Bash::Completion support for Dist::Zilla | ||
| 29 | |||
| 30 | =head1 VERSION | ||
| 31 | |||
| 32 | version 0.02 | ||
| 33 | |||
| 34 | =head1 DESCRIPTION | ||
| 35 | |||
| 36 | L<Bash::Completion> support for L<Dist::Zilla>. | ||
| 37 | |||
| 38 | =head1 SEE ALSO | ||
| 39 | |||
| 40 | L<Bash::Completion>, L<Dist::Zilla> | ||
| 41 | |||
| 42 | =begin comment | ||
| 43 | |||
| 44 | =over | ||
| 45 | |||
| 46 | =item should_activate | ||
| 47 | |||
| 48 | =item command_class | ||
| 49 | |||
| 50 | =back | ||
| 51 | |||
| 52 | =end comment | ||
| 53 | |||
| 54 | =head1 AUTHOR | ||
| 55 | |||
| 56 | Rob Hoelz <rob@hoelz.ro> | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | This software is copyright (c) 2012 by Rob Hoelz. | ||
| 61 | |||
| 62 | This is free software; you can redistribute it and/or modify it under | ||
| 63 | the same terms as the Perl 5 programming language system itself. | ||
| 64 | |||
| 65 | =head1 BUGS | ||
| 66 | |||
| 67 | Please report any bugs or feature requests on the bugtracker website | ||
| 68 | https://github.com/hoelzro/bash-completion-plugins-dzil/issues | ||
| 69 | |||
| 70 | When submitting a bug or request, please include a test-file or a | ||
| 71 | patch to an existing test-file that illustrates the bug or desired | ||
| 72 | feature. | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | |||
| 77 | __END__ | ||