From 2fbc1045f5b8e82d9a68328c35ba07d70d9d1877 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 27 Oct 2014 17:13:26 -0400 Subject: Bug 1088156 - Add a config file for Reply r=gerv a=glob --- contrib/README | 4 ++++ contrib/replyrc | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 contrib/replyrc (limited to 'contrib') 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] -- cgit v1.2.3-24-g4f1b