Cli::Router - Routes commands to their implementation
If you want to "register" a new command, do it here. For more information about how an actual implementation should look like please refer to Wireguard::WGmeta::Cli::Commands::Command.
Routes the cmd (first argument of @ARGV) to their implementation. The case of the commands to not matter. Any unknown command is forwarded to Wireguard::WGmeta::Cli::Commands::Help.
@ARGV
To add a new command add this to the for block:
for
/^your_cmd$/ && do { Wireguard::WGmeta::Cli::Commands::YourCmd->new(@cmd_args)->entry_point(); last; };
Parameters
$ref_list_input_args Reference to @ARGV)
$ref_list_input_args
Returns
None
To install Wireguard::WGmeta, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wireguard::WGmeta
CPAN shell
perl -MCPAN -e shell install Wireguard::WGmeta
For more information on module installation, please visit the detailed CPAN module installation guide.