App::SpreadRevolutionaryDate::Config - Companion class of App::SpreadRevolutionaryDate, to handle configuration file and command line arguments, subclass of AppConfig.
version 0.26
Constructor class method, subclassing AppConfig. Takes no argument. Returns an App::SpreadRevolutionaryDate::Config object.
AppConfig
App::SpreadRevolutionaryDate::Config
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.
$filename
~/.config/spread-revolutionary-date/spread-revolutionary-date.conf
~/.spread-revolutionary-date.conf
Parses command line options. Takes no argument.
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.
target_name
Takes one mandatory argument: target as a string in lower case, without any underscore (like 'twitter', 'mastodon' or 'freenode'). 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 Freenode target).
target
'twitter'
'mastodon'
'freenode'
test
"test_"
test_channels
channels
Freenode
Takes one mandatory argument: msgmaker as a string. Returns a hash with configuration options relative to the passed msgmaker argument.
msgmaker
Prints usage with command line parameters and exits.
Gérald Sédrati-Dinet <gibus@cpan.org>
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
To install App::SpreadRevolutionaryDate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::SpreadRevolutionaryDate
CPAN shell
perl -MCPAN -e shell install App::SpreadRevolutionaryDate
For more information on module installation, please visit the detailed CPAN module installation guide.