| 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 |