diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-10-27 22:13:26 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-10-27 22:13:26 +0100 |
commit | 2fbc1045f5b8e82d9a68328c35ba07d70d9d1877 (patch) | |
tree | 79642da0a7fe689b684338517ef509928f6f8053 /contrib | |
parent | c97e64782c6b3b9d176db5b66abae2e240b456c6 (diff) | |
download | bugzilla-2fbc1045f5b8e82d9a68328c35ba07d70d9d1877.tar.gz bugzilla-2fbc1045f5b8e82d9a68328c35ba07d70d9d1877.tar.xz |
Bug 1088156 - Add a config file for Reply
r=gerv a=glob
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/README | 4 | ||||
-rw-r--r-- | contrib/replyrc | 30 |
2 files changed, 34 insertions, 0 deletions
diff --git a/contrib/README b/contrib/README index f82062925..f0d83086a 100644 --- a/contrib/README +++ b/contrib/README @@ -33,6 +33,10 @@ bz_webservice_demo.pl -- An example script that demonstrates how to talk to recode.pl -- Script to convert a database from one encoding (or multiple encodings) to UTF-8. + replyrc -- A config file for Reply (a perl shell) that loads + Bugzilla, extensions and provides a few utility + functions for manipulating Bugzilla data. + sendbugmail.pl -- This script is a drop-in replacement for the 'processmail' script which used to be shipped with Bugzilla, but was replaced by the diff --git a/contrib/replyrc b/contrib/replyrc new file mode 100644 index 000000000..2c5541e4c --- /dev/null +++ b/contrib/replyrc @@ -0,0 +1,30 @@ +# This is a config file for Reply, +# which is a cpan distribution. You can install it with "cpan Reply" or "cpanm Reply". +# To use this config file, either copy as ~/.replyrc or run the following command: +# reply --cfg `pwd`/contrib/replyrc + +script_line1 = use strict; +script_line2 = use warnings; +script_line3 = use v5.10; +script_line4 = use Bugzilla; +script_line5 = Bugzilla->extensions; 1; +script_line6 = sub filter { Bugzilla->template->{SERVICE}->{CONTEXT}->{CONFIG}->{FILTERS}->{$_[0]} } +script_line7 = sub b { Bugzilla::Bug->new(@_) } +script_line8 = sub u { Bugzilla::User->new(@_) } +script_line9 = sub f { Bugzilla::Field->new(@_) } + +[Interrupt] +[FancyPrompt] +[DataDumper] +[Colors] +[ReadLine] +[Hints] +[Packages] +[LexicalPersistence] +[ResultCache] +[Autocomplete::Packages] +[Autocomplete::Lexicals] +[Autocomplete::Functions] +[Autocomplete::Globals] +[Autocomplete::Methods] +[Autocomplete::Commands] |