Skip to content

Commit eccba62

Browse files
committed
issue2550885 - man page documentation update. roundup-admin.
1 parent 8f0b2f2 commit eccba62

File tree

1 file changed

+213
-2
lines changed

1 file changed

+213
-2
lines changed

share/man/man1/roundup-admin.1

Lines changed: 213 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ roundup-admin \- administrate roundup trackers
66
.SH OPTIONS
77
.TP
88
\fB-i\fP \fIinstance home\fP
9-
specify the issue tracker "home directory" to administer
9+
Specify the issue tracker "home directory" to administer
1010
.TP
1111
\fB-u\fP \fIuser\fP[\fB:\fP\fIpassword\fP]
12-
the user and password to use for commands
12+
The user and password to use for commands
13+
\fB-h\fP
14+
Print help text.
15+
.TP
16+
\fB-d\fP
17+
Print full designators (e.g. issue1) not just id numbers (1).
1318
.TP
1419
\fB-c\fP
1520
When outputting lists of data, comma-separate them. Same as
@@ -21,6 +26,212 @@ When outputting lists of data, separate items with given string.
2126
\fB-s\fP
2227
When outputting lists of data, space-separate them. Same as
2328
\fB-S " "\fP.
29+
.TP
30+
\fB-V\fP
31+
Be verbose when importing data.
32+
.TP
33+
\fB-v\fP
34+
Report Roundup and Python versions and quit.
35+
.PP
36+
Only one of \fB-s\fP, \fB-c\fP or \fB-S\fP can be specified.
37+
.SH COMMANDS
38+
If no command is provided on the command line, roundup-admin will
39+
enter an interactive mode. More details about these commands are
40+
available using the help command.
41+
42+
A designator is a classname and a nodeid concatenated,
43+
eg. bug1, user10, ....
44+
45+
Roundup-admin takes a number of commands:
46+
.TP
47+
\fBhelp\fP
48+
prints help (same as \fB-h\fP)
49+
.TP
50+
\fBhelp\fP \fI<subcommand>\fP
51+
Print command-specific help
52+
.TP
53+
\fBhelp all\fP
54+
Print available help for all commands.
55+
.TP
56+
\fBcommit\fP
57+
Commit changes made to the database during an interactive session.
58+
59+
The changes made during an interactive session are not
60+
automatically written to the database - they must be committed
61+
using this command.
62+
63+
One-off commands on the command-line are automatically committed if
64+
they are successful. See also rollback.
65+
.TP
66+
\fBcreate\fP \fIclassname property=value ...\fP
67+
This creates a new entry of the given class using the property
68+
name=value arguments provided on the command line after the "create"
69+
command.
70+
.TP
71+
\fBdisplay\fP \fIdesignator[,designator]*\fP
72+
This lists the properties and their associated values for the given
73+
node.
74+
.TP
75+
\fBexport\fP \fI[[-]class[,class]] export_dir\fP
76+
Export the database to colon-separated-value files.
77+
To exclude the files (e.g. for the msg or file class),
78+
use the exporttables command.
79+
80+
Optionally limit the export to just the named classes
81+
or exclude the named classes, if the 1st argument starts with '-'.
82+
83+
This action exports the current data from the database into
84+
colon-separated-value files that are placed in the nominated
85+
destination directory.
86+
.TP
87+
\fBexporttables\fP \fI[[-]class[,class]] export_dir\fP
88+
Export the database to colon-separated-value files, excluding the
89+
files below $TRACKER_HOME/db/files/ (which can be archived separately).
90+
To include the files, use the export command.
91+
.TP
92+
\fBfind\fP \fIclassname propname=value ...\fP
93+
Find the nodes of the given class with a given link property value.
94+
.TP
95+
\fBgenconfig\fP \fI<filename>\fP
96+
Generate a new tracker config file (ini style) with default values
97+
in \fI<filename>\fP. Note that this does not preserve any settings from
98+
the current tracker. Use updateconfig for that.
99+
.TP
100+
\fBget\fP \fIproperty designator[,designator]*\fP
101+
Get the given property of one or more designator(s).
102+
103+
Retrieves the property value of the nodes specified
104+
by the designators.
105+
106+
.TP
107+
\fBhistory\fP \fIdesignator [skipquiet]\fP
108+
Lists the journal entries viewable by the user for the
109+
node identified by the designator. If skipquiet is the
110+
second argument, journal entries for quiet properties
111+
are not shown.
112+
.TP
113+
\fBimport\fP \fIimport_dir\fP
114+
Import a database from the directory containing CSV files,
115+
two per class to import.
116+
117+
The imported nodes will have the same nodeid as defined in the
118+
import file, thus replacing any existing content.
119+
120+
The new nodes are added to the existing database - if you want to
121+
create a new database using the imported data, then create a new
122+
database (or, tediously, retire all the old data). See also export.
123+
.TP
124+
\fBinitialise\fP \fI[adminpw]\fP
125+
Initialise a new Roundup tracker.
126+
127+
The administrator details will be set at this step.
128+
.TP
129+
\fBinstall\fP \fI[template [backend [key=val[,key=val]]]]\fP
130+
Install a new roundup tracker.
131+
132+
The command will prompt for the tracker home directory
133+
(if not supplied through TRACKER_HOME or the -i option).
134+
The template and backend may be specified on the command-line
135+
as arguments, in that order.
136+
137+
Command line arguments following the backend allows you to
138+
pass initial values for config options. For example, passing
139+
"web_http_auth=no,rdbms_user=dinsdale" will override defaults
140+
for options http_auth in section [web] and user in section [rdbms].
141+
Please be careful to not use spaces in this argument! (Enclose
142+
whole argument in quotes if you need spaces in option value).
143+
144+
The initialise command must be called after this command in order
145+
to initialise the tracker's database. You may edit the tracker's
146+
initial database contents before running that command by editing
147+
the tracker's dbinit.py module init() function.
148+
149+
See also initopts help.
150+
151+
.TP
152+
\fBlist\fP \fIclassname [property]\fP
153+
Lists all instances of the given class. If the property is not
154+
specified, the "label" property is used. The label property is
155+
tried in order: the key, "name", "title" and then the first
156+
property, alphabetically.
157+
158+
With \fB-c\fP, \fB-S\fP or \fB-s\fP print a list of item id's if no
159+
property specified. If property specified, print list of that
160+
property for every class instance.
161+
.TP
162+
\fBmigrate\fP
163+
Update a tracker's database to be compatible with the Roundup
164+
codebase.
165+
166+
You should run the "migrate" command for your tracker once you've
167+
installed the latest codebase.
168+
169+
Do this before you use the web, command-line or mail interface and
170+
before any users access the tracker.
171+
172+
This command will respond with either "Tracker updated" (if you've
173+
not previously run it on an RDBMS backend) or "No migration action
174+
required" (if you have run it, or have used another interface to the
175+
tracker, or possibly because you are using anydbm).
176+
177+
It's safe to run this even if it's not required, so just get into
178+
the habit.
179+
.TP
180+
\fBpack\fP \fIperiod | date\fP
181+
Remove journal entries older than a period of time specified or
182+
before a certain date.
183+
.TP
184+
\fBreindex\fP \fI[classname|designator]*\fP
185+
This will re-generate the search indexes for a tracker.
186+
.TP
187+
\fBrestore\fP \fIdesignator[,designator]*\fP
188+
Restore the retired node specified by designator.
189+
190+
The given nodes will become available for users again.
191+
.TP
192+
\fBretire\fP \fIdesignator[,designator]*\fP
193+
This action indicates that a particular node is not to be retrieved
194+
by the list or find commands, and its key value may be re-used. See
195+
also restore.
196+
.TP
197+
\fBrollback\fP
198+
Undo all changes that are pending commit to the database.
199+
200+
The changes made during an interactive session are not
201+
automatically written to the database - they must be committed
202+
manually. This command undoes all those changes, so a commit
203+
immediately after would make no changes to the database.
204+
.TP
205+
\fBsecurity\fP \fI[Role name]\fP
206+
Display the Permissions available to one or all Roles.
207+
.TP
208+
\fBset\fP \fIitems property=value property=value ...\fP
209+
Set the given properties of one or more items(s).
210+
211+
The items are specified as a class or as a comma-separated
212+
list of item designators (ie "designator[,designator,...]").
213+
214+
This command sets the properties to the values for all designators
215+
given. If the value is missing (ie. "property=") then the property
216+
is un-set. If the property is a multilink, you specify the linked
217+
ids for the multilink as comma-separated numbers (ie "1,2,3").
218+
.TP
219+
fBspecification\fP \fIclassname\fP
220+
Show the properties for a classname.
221+
.TP
222+
\fBtable\fP \fIclassname [property[,property]*]\fP
223+
Lists all instances of the given class. If the properties are not
224+
specified, all properties are displayed. By default, the column
225+
widths are the width of the largest value.
226+
.TP
227+
\fBupdateconfig\fP \fI<filename>\fP
228+
This is used when updating software. It merges the \fBconfig.ini\fP
229+
from the tracker with new settings from the new software. The
230+
merged/updated config file is written to \fI<filename>\fP.
231+
.PP
232+
Commands may be abbreviated as long as the abbreviation
233+
matches only one command, e.g. l == li == lis == list.
234+
24235
.SH FURTHER HELP
25236
roundup-admin -h
26237
roundup-admin help -- this help

0 commit comments

Comments
 (0)