App-ShellCompleter-CpanUpload

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.037.
Changes
LICENSE
MANIFEST
META.json
META.yml
Makefile.PL
README
bin/_cpan-upload
dist.ini
lib/App/ShellCompleter/CpanUpload.pm
t/00-compile.t
t/release-pod-coverage.t
t/release-pod-syntax.t
weaver.ini

META.json  view on Meta::CPAN

{
   "abstract" : "Shell completion for cpan-upload",
   "author" : [
      "perlancar <perlancar@cpan.org>"
   ],
   "dynamic_config" : 0,
   "generated_by" : "Dist::Zilla version 5.037, CPAN::Meta::Converter version 2.150001",
   "license" : [
      "perl_5"
   ],
   "meta-spec" : {
      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",

META.yml  view on Meta::CPAN

---
abstract: 'Shell completion for cpan-upload'
author:
  - 'perlancar <perlancar@cpan.org>'
build_requires:
  File::Spec: '0'
  IO::Handle: '0'
  IPC::Open3: '0'
  Test::More: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
  Perl::osnames: '0.09'

Makefile.PL  view on Meta::CPAN

# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.037.
use strict;
use warnings;

use 5.010001;

use ExtUtils::MakeMaker;

my %WriteMakefileArgs = (
  "ABSTRACT" => "Shell completion for cpan-upload",
  "AUTHOR" => "perlancar <perlancar\@cpan.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0,
    "Perl::osnames" => "0.09"
  },
  "DISTNAME" => "App-ShellCompleter-CpanUpload",
  "EXE_FILES" => [
    "bin/_cpan-upload"
  ],
  "LICENSE" => "perl",
  "MIN_PERL_VERSION" => "5.010001",
  "NAME" => "App::ShellCompleter::CpanUpload",
  "PREREQ_PM" => {
    "Complete::File" => 0,
    "Filename::Archive" => 0,
    "Getopt::Long::Complete" => 0
  },
  "TEST_REQUIRES" => {

README  view on Meta::CPAN

SYNOPSIS

    See _cpan-upload included in this distribution.

SEE ALSO

    CPAN::Uploader, cpan-upload

bin/_cpan-upload  view on Meta::CPAN

#!perl

our $DATE = '2015-09-27'; # DATE
our $VERSION = '0.05'; # VERSION

# FRAGMENT id=shcompgen-hint completer=1 for=cpan-upload

use 5.010001;
use strict;
use warnings;
#use Log::Any '$log';

use Complete::File qw(complete_file);
use Filename::Archive qw(check_archive_filename);
use Getopt::Long::Complete qw(GetOptionsWithCompletion);

bin/_cpan-upload  view on Meta::CPAN

                        -d($_[0]) || check_archive_filename(filename => $_);
                    },
                ),
                path_sep => '/',
            };
        }
    },
    %$opt_spec,
);

# ABSTRACT: Shell completer for cpan-upload
# PODNAME: _cpan-upload

__END__

=pod

=encoding UTF-8

=head1 NAME

_cpan-upload - Shell completer for cpan-upload

=head1 VERSION

This document describes version 0.05 of Getopt::Long::Patch::DumpAndExit (from Perl distribution App-ShellCompleter-CpanUpload), released on 2015-09-27.

=head1 SYNOPSIS

To install, install this module and then in your bash (and/or bash startup
file):

 complete -C _cpan-upload cpan-upload

or, you can use L<shcompgen> to do that for you automatically.

Now L<cpan-upload> has bash completion:

 % cpan-upload <tab>
 % cpan-upload --ig<tab>

=head1 COMPLETION

This script has shell tab completion capability with support for several
shells.

=head2 bash

To activate bash completion for this script, put:

 complete -C _cpan-upload _cpan-upload

in your bash startup (e.g. C<~/.bashrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.

It is recommended, however, that you install L<shcompgen> which allows you to
activate completion scripts for several kinds of scripts on multiple shells.
Some CPAN distributions (those that are built with
L<Dist::Zilla::Plugin::GenShellCompletion>) will even automatically enable shell
completion for their included scripts (using C<shcompgen>) at installation time,
so you can immadiately have tab completion.

=head2 tcsh

To activate tcsh completion for this script, put:

 complete _cpan-upload 'p/*/`_cpan-upload`/'

in your tcsh startup (e.g. C<~/.tcshrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.

It is also recommended to install C<shcompgen> (see above).

=head2 other shells

For fish and zsh, install C<shcompgen> as described above.

lib/App/ShellCompleter/CpanUpload.pm  view on Meta::CPAN

package App::ShellCompleter::CpanUpload;

our $DATE = '2015-09-27'; # DATE
our $VERSION = '0.05'; # VERSION

1;
# ABSTRACT: Shell completion for cpan-upload

__END__

=pod

=encoding UTF-8

=head1 NAME

App::ShellCompleter::CpanUpload - Shell completion for cpan-upload

=head1 VERSION

This document describes version 0.05 of App::ShellCompleter::CpanUpload (from Perl distribution App-ShellCompleter-CpanUpload), released on 2015-09-27.

=head1 SYNOPSIS

See L<_cpan-upload> included in this distribution.

=head1 SEE ALSO

L<CPAN::Uploader>, L<cpan-upload>

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-ShellCompleter-CpanUpload>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-ShellCompleter-CpanUpload>.

=head1 BUGS

t/00-compile.t  view on Meta::CPAN


use Test::More;

plan tests => 2 + ($ENV{AUTHOR_TESTING} ? 1 : 0);

my @module_files = (
    'App/ShellCompleter/CpanUpload.pm'
);

my @scripts = (
    'bin/_cpan-upload'
);

# no fake home requested

my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';

use File::Spec;
use IPC::Open3;
use IO::Handle;



( run in 1.846 second using v1.01-cache-2.11-cpan-b16cb0d3907 )