#!/usr/bin/env perl
# PODNAME: duckpan
# ABSTRACT: Command line tool for using the DuckPAN of DuckDuckGo

my @libs;

BEGIN {
    use Getopt::Long qw/:config bundling pass_through/;
    GetOptions 'include|I=s' => \@libs;
    @libs = split ',', join ',', @libs;
}
use lib @libs;

$|=1;

use App::DuckPAN;
App::DuckPAN->new_with_cmd;

__END__

=pod

=head1 NAME

duckpan - Command line tool for using the DuckPAN of DuckDuckGo

=head1 VERSION

version 0.128

=head1 Duckpan

Duckpan is DuckDuckGo instant answer plugin testing platform. 

=head2 SYNPOSIS

B<duckpan server> command as an instance if run at toplevel directory of goodies or spice code base will allow testing of plugins in local environment. Test and verify functionality before requesting merging for production. B<Duckpan> is designed to be as similar to L<https://www.duckduckgo.com> as possible. 

=head2 INSTALLATION

The installation requires some dependencies according to plugin platform being tested. C<duckpan installdeps> fulfilling these dependencies. The dependencies are installed in current directory. This command is meant to be used DDG zeroclickinfo-* code base.

=head2 COMMANDS

B<duckpan check>:
    Check for the requirements to make duckpan contributions

B<duckpan query>:  
    Query is a command line tool for testing the plugin triggers. It can be used to test zeroclickinfo-goodies plugins.

B<duckpan server>:
    Server runs a local webserver very similar to DuckDuckGo production environment. It can be used to test zeroclickinfo-goodies and zeroclickinfo-spice plugins. 

B<duckpan help>:
    Help shows you this page which briefly describes duckpan tool and its features.

B<duckpan test>:
    Test your release (this will run automatically before a release).

B<duckpan poupload>:
    Upload a po file to the Community Platform (Translation manager only).

B<duckpan publisher>:
    Live testing of duckduckgo-publisher.

B<duckpan release>:
    Release the project of the current directory to DuckPAN.

B<duckpan setup>:
  Still in beta setup helps setting environment for using Dist::Zilla::Plugin::UploadToDuckPAN.

=head2 ENVIRONMENT

B<duckpan env name value>
    Add an environment variable that duckpan will remember. Useful for
    spice API keys. Variables are stored in ~/.duckpan/env.ini

B<duckpan env rm name>
    Remove an environment variable from duckpan. 

=head2 PARAMETERS  

B<duckpan -Ilib>:
    Preload an external library intended for use while developing plugin development. For example loading modified duckpan modules C<duckpan -I../p5-app-duckpan/lib server>

=head2 DESCRIPTION

See L<App::DuckPAN> for more information.

=head2 SEE ALSO

L<https://duckduckgo.com>

L<https://github.com/duckduckgo>

L<https://dukgo.com>

L<http://duckpan.org>

=head2 CONTRIBUTION

We welcome and encourage contributions from our community. Please visit L<http://duckduckhack.com/> to contribute your ideas, code samples, new sources of plugin data or just express your appreciation of what we are trying to do.

=head2 SUPPORT

B<IRC>

  We invite you to join us at B<#duckduckgo> on B<irc.freenode.net> for any queries and lively discussion.

B<Repository>

  L<https://github.com/duckduckgo/p5-app-duckpan>

B<Issue Tracker>

  https://github.com/duckduckgo/p5-app-duckpan/issues

=head1 AUTHOR

Torsten Raudssus <torsten@raudss.us> L<https://raudss.us/>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by DuckDuckGo, Inc. L<http://duckduckgo.com/>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
