-
-
02 Jun 2021 18:24:39 UTC
- Distribution: App-SpreadRevolutionaryDate
- Module version: 0.31
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (71 / 0 / 4)
- Kwalitee
Bus factor: 1- % Coverage
- License: gpl_3
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (83.78KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- AppConfig
- Bot::BasicBot
- Class::Load
- DateTime::Calendar::FrenchRevolutionary
- Encode
- File::HomeDir
- File::Spec
- Getopt::Long
- IO::Handle
- IO::Prompt::Hooked
- LWP::Protocol::https
- Locale::Messages
- Locale::TextDomain
- Locale::Util
- Mastodon::Client
- Moose
- Moose::Role
- MooseX::NonMoose
- MooseX::Role::Parameterized
- Net::Async::HTTP
- Net::OAuth
- Net::Twitter::Lite::WithAPIv1_1
- POE
- URI::Escape
- namespace::autoclean
- open
- utf8
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
App::SpreadRevolutionaryDate::Config - Companion class of App::SpreadRevolutionaryDate, to handle configuration file and command line arguments, subclass of AppConfig.
VERSION
version 0.31
METHODS
new
Constructor class method, subclassing
AppConfig
. Takes no argument. Returns anApp::SpreadRevolutionaryDate::Config
object.parse_file
Parses configuration file. Takes one optional argument:
$filename
which should be the file path or an opened file handle of your configuration path, defaults to~/.config/spread-revolutionary-date/spread-revolutionary-date.conf
or~/.spread-revolutionary-date.conf
.parse_command_line
Parses command line options. Takes no argument.
check_target_mandatory_options
Checks whether target configuration options are set to authenticate on specified target. Takes one mandatory argument:
target_name
as string. Dies if a mandatory configuration option is missing.get_target_arguments
Takes one mandatory argument:
target
as a string in lower case, without any underscore (like'twitter'
,'mastodon'
,'freenode'
or'liberachat'
). Returns a hash with configuration options relative to the passedtarget
argument. Iftest
option is true, any value for an option starting with"test_"
will be set for the option with the same name without"test_"
(eg. values oftest_channels
are set to optionchannels
forLiberachat
target).get_msgmaker_arguments
Takes one mandatory argument:
msgmaker
as a string. Returns a hash with configuration options relative to the passedmsgmaker
argument.usage
Prints usage with command line parameters and exits.
SEE ALSO
- spread-revolutionary-date
- App::SpreadRevolutionaryDate
- App::SpreadRevolutionaryDate::Target
- App::SpreadRevolutionaryDate::Target::Twitter
- App::SpreadRevolutionaryDate::Target::Mastodon
- App::SpreadRevolutionaryDate::Target::Freenode
- App::SpreadRevolutionaryDate::Target::Freenode::Bot
- App::SpreadRevolutionaryDate::Target::Liberachat
- App::SpreadRevolutionaryDate::Target::Liberachat::Bot
- App::SpreadRevolutionaryDate::MsgMaker
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Calendar
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::fr
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::en
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::it
- App::SpreadRevolutionaryDate::MsgMaker::RevolutionaryDate::Locale::es
- App::SpreadRevolutionaryDate::MsgMaker::PromptUser
AUTHOR
Gérald Sédrati-Dinet <gibus@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2019 by Gérald Sédrati-Dinet.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
Module Install Instructions
To install App::SpreadRevolutionaryDate, copy and paste the appropriate command in to your terminal.
cpanm App::SpreadRevolutionaryDate
perl -MCPAN -e shell install App::SpreadRevolutionaryDate
For more information on module installation, please visit the detailed CPAN module installation guide.