CamshotBot/Command/env.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Telegram::CamshotBot::Command::env;
2 $Telegram::CamshotBot::Command::env::VERSION = '0.03';
3 # ABSTRACT: prints list of all environment variables
4  
5 use Mojo::Base 'Mojolicious::Command';
6 use Data::Printer;
7  
8 has description => 'Prints list of set CAMSHOTBOT_* environment variables and its values';
9 has usage => "Usage: APPLICATION env\n";
10  
11 sub run {
12 my $self = shift;
13 print "### SETTED ENVIRONMENT VARIABLES ###\n";
14 print `printenv | grep CAMSHOTBOT_* | sort -u`;
15 print "\n\n";
16 print "### VARIABLES FROM CONFIG ###\n";
17 p $self->app->config;
18 print "\n\n";
19 }
20  
21 1;
22  
23 __END__