App-Zapzi
view release on metacpan or search on metacpan
## Setup
To get started, type:
$ zapzi init
and it will create a directory (by default ~/.zapzi) to store its
database and files. You can override this directory by setting the
environment variable `ZAPZI_DIR`.
Zapzi will then prompt for configuration options such as preferred
format for publishing eBooks. If you run this command
non-interactively it will use defaults.
To view or change these options see Configuration below for further
details.
## Adding Articles
To add an article, use `zapzi add` with a filename on your computer,
the name of a module containing POD (eg File::Basename) or an HTTP
README.mkdn view on Meta::CPAN
## Setup
To get started, type:
$ zapzi init
and it will create a directory (by default ~/.zapzi) to store its
database and files. You can override this directory by setting the
environment variable `ZAPZI_DIR`.
Zapzi will then prompt for configuration options such as preferred
format for publishing eBooks. If you run this command
non-interactively it will use defaults.
To view or change these options see Configuration below for further
details.
## Adding Articles
To add an article, use `zapzi add` with a filename on your computer,
the name of a module containing POD (eg File::Basename) or an HTTP
=head2 SETUP
To get started, type:
$ zapzi init
and it will create a directory (by default ~/.zapzi) to store its
database and files. You can override this directory by setting the
environment variable C<ZAPZI_DIR>.
Zapzi will then prompt for configuration options such as preferred
format for publishing eBooks. If you run this command
non-interactively it will use defaults.
To view or change these options see L<CONFIGURATION> for further
details.
=head2 ADDING ARTICLES
To add an article, use C<zapzi add> with a filename on your computer,
the name of a module containing POD (eg File::Basename) or an HTTP
lib/App/Zapzi.pm view on Meta::CPAN
}
my @keys = App::Zapzi::UserConfig::get_user_init_configurable_keys();
while (@keys)
{
my $key = shift @keys;
my $value = App::Zapzi::UserConfig::get_default($key);
if ($self->interactive)
{
$value = prompt('s', # validate by sub
App::Zapzi::UserConfig::get_description($key),
App::Zapzi::UserConfig::get_options($key),
$value, # the default value
App::Zapzi::UserConfig::get_validater($key));
}
# Only ask distribution_destination if distribution_method is set
if ($key eq 'distribution_method' && lc($value) ne 'nothing')
{
unshift @keys, 'distribution_destination';
lib/App/Zapzi.pm view on Meta::CPAN
=head2 database
The instance of App:Zapzi::Database used by the application.
=head2 test_database
If set, use an in-memory database. Used to speed up testing only.
=head2 interactive
If set, this is an interactive session where Zapzi can prompt the user
for input.
=head1 METHODS
=head2 get_app
=method BUILD
At construction time, a copy of the application object is stored and
can be retrieved later via C<get_app>.
( run in 0.955 second using v1.01-cache-2.11-cpan-0b5f733616e )