App::Zapzi - store articles and publish them to read later
version 0.008
This class implements the application functions for Zapzi. See the page for the zapzi command for details on how to run it.
The current state of the application, -1 means nothing has been done, 0 OK, otherwise an error code. Used for exit code when the process terminates.
Option to force processing of the init command. Default is unset.
Option to not archive articles on publication
Folder to work on. Default is 'Inbox'
Transformer to extract text from the article. Default is '', which means Zapzi will automatically the best option based on the content type of the text.
The folder where Zapzi files are stored.
The folder where Zapzi published eBook files are stored.
The instance of App:Zapzi::Database used by the application.
If set, use an in-memory database. Used to speed up testing only.
At construction time, a copy of the application object is stored and can be retrieved later via get_app.
get_app
Read the arguments @args (normally you'd pass in @ARGV and process them according to the command line specification for the application.
@args
@ARGV
Creates the database. Will only do so if the database does not exist already or if the force attribute is set.
Determines if the folder specified exists.
Lists out the articles in folder.
List folder names and article counts.
Create one or more new folders. Will ignore any folders that already exist.
Remove one or more new folders. Will not allow removal of system folders ie Inbox and Archive, but will ignore removal of folders that do not exist.
Remove an article from the database
Add an article to the database for later publication.
Exports article text. If output is 'browser' then will start a browser to view the article, otherwise it will print to STDOUT.
output
Publish a folder of articles to an eBook
Displays help text.
Displays version information.
Rupert Lane <rupert@rupert-lane.org>
This software is copyright (c) 2013 by Rupert Lane.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Zapzi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Zapzi
CPAN shell
perl -MCPAN -e shell install App::Zapzi
For more information on module installation, please visit the detailed CPAN module installation guide.