| 1 | package App::SD::CLI::Command::Help::Intro; | ||
| 2 | use Any::Moose; | ||
| 3 | extends 'App::SD::CLI::Command::Help'; | ||
| 4 | |||
| 5 | sub run { | ||
| 6 | my $self = shift; | ||
| 7 | $self->print_header('Getting started with SD'); | ||
| 8 | my ${cmd}= $self->cli->get_script_name; | ||
| 9 | |||
| 10 | print <<EOF | ||
| 11 | SD is a peer to peer ticket tracking system built on the Prophet | ||
| 12 | distributed database. SD is designed to make it easy to work with tickets | ||
| 13 | and to share ticket databases with your collaborators. | ||
| 14 | |||
| 15 | To get started with SD, you need a ticket database. To get a ticket | ||
| 16 | database, you have two options: You can clone an existing database | ||
| 17 | or start a new one. | ||
| 18 | |||
| 19 | SD will store its local database replica in the path specified by the | ||
| 20 | SD_REPO environment variable. Generally, you will want to use a shell | ||
| 21 | script or alias wrapper to set this variable if you have more than one | ||
| 22 | SD replica. Two scripts distributed with SD will set SD_REPO from the | ||
| 23 | VCS of the project directory you're currently in: git-sd and darcs-sd. | ||
| 24 | If you write a wrapper for another VCS, please contribute it back! | ||
| 25 | |||
| 26 | To clone a ticket database: | ||
| 27 | |||
| 28 | ${cmd}clone --from http://example.com/path/to/sd | ||
| 29 | |||
| 30 | To start a new ticket database: | ||
| 31 | |||
| 32 | ${cmd}init | ||
| 33 | |||
| 34 | Or, using the git-sd script within a project checkout: | ||
| 35 | |||
| 36 | git sd init | ||
| 37 | |||
| 38 | To configure your project's name, milestones and components: | ||
| 39 | |||
| 40 | ${cmd}settings edit | ||
| 41 | |||
| 42 | To create a ticket, run: | ||
| 43 | |||
| 44 | ${cmd}ticket create | ||
| 45 | |||
| 46 | To list all tickets in your database: | ||
| 47 | |||
| 48 | ${cmd}ticket list | ||
| 49 | |||
| 50 | To publish your database: | ||
| 51 | |||
| 52 | ${cmd}publish joeuser\@myhost.example.com:public_html/mydb | ||
| 53 | |||
| 54 | To learn a bit more about what you can do with SD: | ||
| 55 | |||
| 56 | ${cmd}help | ||
| 57 | EOF | ||
| 58 | |||
| 59 | } | ||
| 60 | |||
| 61 | __PACKAGE__->meta->make_immutable; | ||
| 62 | no Any::Moose; | ||
| 63 | |||
| 64 | 1; | ||
| 65 |