| 1 | package App::SD::CLI::Command::Help::Environment; | ||
| 2 | use Any::Moose; | ||
| 3 | extends 'App::SD::CLI::Command::Help'; | ||
| 4 | |||
| 5 | sub run { | ||
| 6 | my $self = shift; | ||
| 7 | $self->print_header('Environment variables'); | ||
| 8 | my ${cmd}= $self->cli->get_script_name; | ||
| 9 | |||
| 10 | print <<EOF | ||
| 11 | |||
| 12 | The following environmental variables can be set to affect SD's | ||
| 13 | configuration. Example syntax is for bash-like shells. | ||
| 14 | |||
| 15 | export SD_REPO=/path/to/sd/replica | ||
| 16 | Specify where the ticket database SD is using should reside. | ||
| 17 | |||
| 18 | export PROPHET_EMAIL=jesse\@example.com | ||
| 19 | Use 'jesse\@example.com' as the creator of changesets. Prophet | ||
| 20 | will use EMAIL if PROPHET_EMAIL isn't defined. | ||
| 21 | |||
| 22 | export SD_CONFIG=/path/to/sd/config/file | ||
| 23 | Specify where the configuration file SD is using should reside. | ||
| 24 | If this variable is specified, no other config file will be | ||
| 25 | loaded. | ||
| 26 | |||
| 27 | export PROPHET_HISTFILE=~/.sd-history | ||
| 28 | Specify where the interactive shell should store its history. | ||
| 29 | |||
| 30 | export PROPHET_HISTLENGTH=100 | ||
| 31 | Specify how much history the interactive shell should store. | ||
| 32 | |||
| 33 | export PROPHET_DEVEL=1 | ||
| 34 | Turn on various development mode checks, warnings and autoreloading | ||
| 35 | of modules. | ||
| 36 | |||
| 37 | export PROPHET_REPLICA_TYPE=prophet | ||
| 38 | Use the prophet native replica type. Other backend replica | ||
| 39 | types are: sqlite. | ||
| 40 | |||
| 41 | |||
| 42 | For information on SD database configuration files, see '${cmd}help config'. | ||
| 43 | EOF | ||
| 44 | |||
| 45 | } | ||
| 46 | |||
| 47 | __PACKAGE__->meta->make_immutable; | ||
| 48 | no Any::Moose; | ||
| 49 | |||
| 50 | 1; | ||
| 51 |