| 1 | package App::SD::CLI::Command::Help::Commands; | ||
| 2 | use Any::Moose; | ||
| 3 | extends 'App::SD::CLI::Command::Help'; | ||
| 4 | |||
| 5 | sub run { | ||
| 6 | my $self = shift; | ||
| 7 | $self->print_header('Summary of SD commands'); | ||
| 8 | my ${cmd}= $self->cli->get_script_name; | ||
| 9 | |||
| 10 | print <<EOF | ||
| 11 | |||
| 12 | The commonly used SD commands are: | ||
| 13 | |||
| 14 | help view built-in documentation | ||
| 15 | init initialise a new replica | ||
| 16 | clone clone an existing local or remote replica | ||
| 17 | publish publish a replica so others can pull from / clone it | ||
| 18 | pull pull in new changesets from another replica | ||
| 19 | push push changesets to a foreign replica | ||
| 20 | server run a local web interface | ||
| 21 | browser run a local web interface and open it up in a browser | ||
| 22 | log view changesets | ||
| 23 | shell spawn an interactive shell | ||
| 24 | version view version information | ||
| 25 | config view and modify configuration | ||
| 26 | aliases view and modify aliases | ||
| 27 | settings manage replica-specific settings | ||
| 28 | |||
| 29 | For operating on tickets: | ||
| 30 | |||
| 31 | create (new) make a new ticket | ||
| 32 | search (list) list tickets matching criteria | ||
| 33 | show (basics) show basic info about a ticket | ||
| 34 | details show detailed info about a ticket | ||
| 35 | comment create a new comment on a ticket | ||
| 36 | comments show all comments belonging to a ticket | ||
| 37 | update (edit) change info about a ticket | ||
| 38 | delete (rm) delete a ticket | ||
| 39 | |||
| 40 | For operating on ticket comments: | ||
| 41 | |||
| 42 | create (new) make a new ticket comment | ||
| 43 | update (edit) change info about a ticket comment | ||
| 44 | delete (rm) delete a ticket comment | ||
| 45 | |||
| 46 | For operating on ticket attachments: | ||
| 47 | |||
| 48 | create (new) make a new ticket attachment | ||
| 49 | content display an attachment | ||
| 50 | delete (rm) delete a ticket attachment | ||
| 51 | |||
| 52 | Commands that operate on a record must be run with the record | ||
| 53 | type specified. See the examples given in specific help documents. | ||
| 54 | EOF | ||
| 55 | |||
| 56 | } | ||
| 57 | |||
| 58 | __PACKAGE__->meta->make_immutable; | ||
| 59 | no Any::Moose; | ||
| 60 | |||
| 61 | 1; | ||
| 62 |