]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1088156 - Add a config file for Reply
authorDylan William Hardison <dylan@hardison.net>
Mon, 27 Oct 2014 21:13:26 +0000 (17:13 -0400)
committerDylan William Hardison <dylan@hardison.net>
Mon, 27 Oct 2014 21:13:26 +0000 (17:13 -0400)
r=gerv a=glob

contrib/README
contrib/replyrc [new file with mode: 0644]

index f82062925238a066f7f032adcf5ae359ec92c9e7..f0d83086a248917f0287ee868a7363d636d3345e 100644 (file)
@@ -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 (file)
index 0000000..2c5541e
--- /dev/null
@@ -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]