NAME
App::CPAN2Pkg::Curses - curses user interface for cpan2pkg
DESCRIPTION
App::CPAN2Pkg::Curses
implements a POE session driving a curses interface for cpan2pkg
.
It is spawned directly by cpan2pkg
(since Curses::UI::POE
is a bit special regarding the event loop), and is responsible for launching the application controller (see App::CPAN2Pkg
).
PUBLIC PACKAGE METHODS
my $cui = App::CPAN2Pkg->spawn( \%params )
This method will create a POE session responsible for creating the curses UI and reacting to it.
It will return a Curses::UI::POE
object.
You can tune the session by passing some arguments as a hash reference, where the hash keys are:
modules => \@list_of_modules
A list of modules to start packaging.
PUBLIC EVENTS ACCEPTED
The following events are the module's API.
append( $module, $line )
Update the specific part of the ui devoluted to $module
with an additional $line
.
module_available( $module )
Sent when $module
is available. Updating list of modules to reflect this new status.
module_spawned( $module )
Sent when a new module has been requested to be packaged. The argment $module
is a App::CPAN2Pkg::Module
object with all the needed information.
prereqs( $module, @prereqs )
Update the missing @prereqs
of $module
in the ui.
SEE ALSO
For all related information (bug reporting, source code repository, etc.), refer to App::CPAN2Pkg
's pod, section SEE ALSO
.
AUTHOR
Jerome Quelin, <jquelin@cpan.org>
COPYRIGHT & LICENSE
Copyright (c) 2009 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.