NAME

App::SpreadRevolutionaryDate::Config - Companion class of App::SpreadRevolutionaryDate, to handle configuration file and command line arguments, subclass of AppConfig.

VERSION

version 0.38

METHODS

new

Constructor class method, subclassing AppConfig. Takes no argument. Returns an App::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 'bluesky', 'twitter', 'mastodon', 'freenode' or 'liberachat'). Returns a hash with configuration options relative to the passed target argument. If test 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 of test_channels are set to option channels for Liberachat target).

get_msgmaker_arguments

Takes one mandatory argument: msgmaker as a string. Returns a hash with configuration options relative to the passed msgmaker argument.

usage

Prints usage with command line parameters and exits.

SEE ALSO

spread-revolutionary-date
App::SpreadRevolutionaryDate
App::SpreadRevolutionaryDate::BlueskyLite
App::SpreadRevolutionaryDate::Target
App::SpreadRevolutionaryDate::Target::Bluesky
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 <gibus@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019-2024 by Gérald Sédrati.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007