NAME
bugtemplates - insert object templates
DESCRIPTION
Inserts <Perlbug::Object::Template>s on behalf of all/any objects into database.
Object type based on contents of Perlbug::Object::Object table.
For this to be practical, each format type should have, in addition to default types for Flag and Mail objects, a distinct template for corresponding Bug, Group and User objects. Application and Item defaults can use the _merge routine with no great loss (except beauty :-)
USAGE
./bugtemplates -[dfFhmoqtux]
SYNOPSIS
Only insert ascii bug templates against user perlbug, richardf and mickey mouse
./bugtemplates -f a -o bug -u perlbug:richardf:mm
Force insert of default html templates only
./bugtemplates -f h -x default -F
SWITCHES
- d
-
debug level
- f
-
format (a|h|H|i|L|...) default is all /\w+/
- F
-
Force insert, even though comparable exists (will overwrite) in DB
- h
-
help - perldoc $0
- m
-
max number of inserts to process
- o
-
object (bug|patch|user|...) or defaults for (mail|flag|...) - default is /\w+/
- q
-
quiet
- t
-
test - no inserts, just echo which would have been inserted
- u
-
user:s who can use these templates - default is perlbug (list split by :)
- x
-
object / default (similar to f and u)
TEMPLATES
Divided by format, default or object type, object key:
For an explanation of each format see Perlbug::Format
+ means the template is supplied here and will be B<merge()>'d
- means it isn't (and will use the default B<_merge()> unless template provided)
Formats: a A h H i I l L x X
============================
APPLIC: a A h H i I l L x X
default - - - - - - - - - -
log - - - - - - - - - -
range - - - - - - - - - -
FLAG: a A h H i I l L x X
default + + + + + + + + - -
change - - - - - - - - - -
fixed - - - - - - - - - -
osname - - - - - - - - - -
project - - - - - - - - - -
severity - - - - - - - - - -
status - - - - - - - - - -
version - - - - - - - - - -
ITEM: a A h H i I l L x X
default - - - - + + + + - -
address + + - - - - - - - -
group + + + + - - + + - -
user + + + + - - + - - -
MAIL: a A h H i I l L x X
default + + + + + + + + - -
bug + + + + - - + + - -
child - - - - - - - - - -
message - - - - - - - - - -
note - - - - - - - - - -
parent - - - - - - - - - -
patch - - - - - - - - - -
test - - - - - - - - - -