From: miker Date: Tue, 12 Jul 2005 19:12:37 +0000 (+0000) Subject: adding filtering and sorting to the introspection stubber X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=edd3add782fe3464261a757586613e3066ce65b6;p=working%2FOpenSRF.git adding filtering and sorting to the introspection stubber git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@389 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/doc/dokuwiki-doc-stubber.pl b/doc/dokuwiki-doc-stubber.pl index 19ac244..81c9d0b 100755 --- a/doc/dokuwiki-doc-stubber.pl +++ b/doc/dokuwiki-doc-stubber.pl @@ -4,16 +4,17 @@ use Getopt::Long $| = 1; -my $count = $ARGV[0]; my $cvs_base = 'http://open-ils.org/cgi-bin/viewcvs.cgi/ILS/Open-ILS/src/perlmods/'; my $nest = 0; my $service; +my $filter; my $sort_ignore; GetOptions( 'cvs_base=s' => \$cvs_base, 'nest' => \$nest, 'service=s' => \$service, 'ignore=s' => \$sort_ignore, + 'filter=s' => \$filter, ); unless( $service ) { @@ -24,7 +25,12 @@ unless( $service ) { OpenSRF::System->bootstrap_client(); my $session = OpenSRF::AppSession->create( $service ); -my $req = $session->request('opensrf.system.method.all'); +my $req; +if ($filter) { + $req = $session->request('opensrf.system.method', $filter); +} else { + $req = $session->request('opensrf.system.method.all'); +} my $count = 1; my %m;