SD/CLI/Command/Help/Settings.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package App::SD::CLI::Command::Help::Settings;
2 use Any::Moose;
3 extends 'App::SD::CLI::Command::Help';
4  
5 sub run {
6 my $self = shift;
7 $self->print_header('Database Settings');
8 my ${cmd}= $self->cli->get_script_name;
9  
10 print <<EOF
11 The 'settings' command allows you to modify configuration variables
12 that propagate with the current database, known as settings.
13  
14 If given no arguments, the settings command will print the current
15 settings.
16  
17 The following arguments are supported:
18  
19 show
20 Don't present an editor window, just print the current
21 settings to STDOUT.
22  
23 edit
24 Present an editor window containing all the current settings
25 for interactive editing.
26  
27 set -- common_ticket_props '["id", "summary", "original_replica"]'
28 Update the setting common_ticket_props to the given value.
29 Any setting, including multiple settings, may be set this way.
30  
31 Setting values must be valid JSON.
32  
33 Settings are not the same as local configuration variables. For
34 more information on local configuration, see '${cmd}help config'.
35  
36 EOF
37  
38 }
39  
40 __PACKAGE__->meta->make_immutable;
41 no Any::Moose;
42  
43 1;
44