| 1 | package BugCli::Help; | ||
| 2 | |||
| 3 | push @Term::Shell::ISA, __PACKAGE__ | ||
| 4 | unless grep { $_ eq __PACKAGE__ } @Term::Shell::ISA; | ||
| 5 | |||
| 6 | sub help_bugs { | ||
| 7 | <<'END'; | ||
| 8 | Syntax: bugs [query_name] | ||
| 9 | bugs /regexp/ | ||
| 10 | bugs | ||
| 11 | |||
| 12 | Runs a query on the datatabase, works with predefined queries and | ||
| 13 | with regexp on the subject of the bug. | ||
| 14 | |||
| 15 | Add a query by typing 'config query.query_name' | ||
| 16 | View a list of defined queries just by typing 'bugs' | ||
| 17 | END | ||
| 18 | |||
| 19 | } | ||
| 20 | |||
| 21 | sub help_changelog { | ||
| 22 | <<'END'; | ||
| 23 | Syntax: changelog range [-f] [-o outfile] | ||
| 24 | |||
| 25 | This command will display a changelog for yours bugs for specified range. | ||
| 26 | |||
| 27 | Format of the range is simple: | ||
| 28 | [d/w/y]-[number] | ||
| 29 | 'number' means how many steps to take back | ||
| 30 | 'd/w/y' means 'day/week/year' | ||
| 31 | For example, I want to see all closed bugs since last year: 'y-1' | ||
| 32 | Or all closed bugs in two last weeks: 'w-2', | ||
| 33 | Or all closed bugs this week: 'w-0' | ||
| 34 | |||
| 35 | '-f' will enable a verbose mode for display (it will show comments aswell) | ||
| 36 | '-o' parameter will set the file to write to | ||
| 37 | |||
| 38 | END | ||
| 39 | } | ||
| 40 | |||
| 41 | sub help_fix { | ||
| 42 | <<'END'; | ||
| 43 | Syntax: fix bug_id [comment] | ||
| 44 | |||
| 45 | Set's bug status to FIXED, and adds a comment supplied in command line. | ||
| 46 | If not comment supplied, the program will ask for one. | ||
| 47 | |||
| 48 | Pressing TAB will enable completion of bug-id's from the last query | ||
| 49 | |||
| 50 | END | ||
| 51 | } | ||
| 52 | |||
| 53 | sub help_comment { | ||
| 54 | <<'END'; | ||
| 55 | Same as 'fix', but only adds a comment to a bug, without changing status. | ||
| 56 | END | ||
| 57 | } | ||
| 58 | |||
| 59 | sub help_take { | ||
| 60 | <<'END'; | ||
| 61 | Same as 'fix', but adds a comment, and assigns a bug to you, changing status to ASSIGNED | ||
| 62 | END | ||
| 63 | } | ||
| 64 | |||
| 65 | sub help_config { | ||
| 66 | <<'END'; | ||
| 67 | Syntax: config | ||
| 68 | config [categorie] | ||
| 69 | config [categorie.value] | ||
| 70 | config show | ||
| 71 | config show [categorie] | ||
| 72 | config show [categorie.value] | ||
| 73 | |||
| 74 | This beast takes care of all the configuration and customization of the program. | ||
| 75 | 'config' will run you through complete reconfiguration of the program. | ||
| 76 | 'config [categorie]' will run you through reconfiguration of this part of program | ||
| 77 | 'config [categorie.value]' reconfigures specific value of some categorie | ||
| 78 | 'config show' will display all current settings | ||
| 79 | 'config show [categorie]' will display specific categorie of settings | ||
| 80 | 'config show [categorie.value]' same, but more specific. | ||
| 81 | |||
| 82 | All commands support tab-completion which will help you to see what options are there | ||
| 83 | to be re-configured. | ||
| 84 | END | ||
| 85 | } | ||
| 86 | |||
| 87 | sub help_history { | ||
| 88 | <<'END'; | ||
| 89 | Syntax: history | ||
| 90 | |||
| 91 | This will display the list of most recently typed commands. | ||
| 92 | END | ||
| 93 | } | ||
| 94 | |||
| 95 | sub help_delete { | ||
| 96 | <<'END'; | ||
| 97 | Syntax: delete [bug_id] [options] | ||
| 98 | |||
| 99 | Deletes a bug from database by it's ID. | ||
| 100 | Pressing tab will show you the bug_ids from the last query that you've ran. | ||
| 101 | |||
| 102 | Options: | ||
| 103 | |||
| 104 | -f Force delete. If Specified, no questions are asked. Use with care! | ||
| 105 | END | ||
| 106 | } | ||
| 107 | |||
| 108 | sub help_show { | ||
| 109 | <<'END'; | ||
| 110 | Syntax: show [bug_id] | ||
| 111 | show /regexp/ | ||
| 112 | |||
| 113 | Pressing tab will show you the bug_ids from the last query that you've ran. | ||
| 114 | Supplying /regexp/ will show all bugs matching it in the subject | ||
| 115 | END | ||
| 116 | } | ||
| 117 | |||
| 118 | 1; | ||
| 119 |