Changeset 292


Ignore:
Timestamp:
01/11/11 21:21:59 (13 years ago)
Author:
nanardon
Message:
  • document bot command options
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Chat/Cmd.pm

    r291 r292  
    204204} 
    205205 
    206 =head2 q REGEXP 
     206=head2 q [-d distrib] [-r release] [-a arch] [-s]  REGEXP 
    207207 
    208208Search rpm name matching C<REGEXP>. 
     
    222222            'd=s' => \$reqspec->{distribution}, 
    223223            'v=s' => \$reqspec->{release}, 
     224            'r=s' => \$reqspec->{release}, 
    224225            'a=s' => \$reqspec->{arch}, 
    225226            's'   => sub { $reqspec->{src} = 1 }, 
     
    249250} 
    250251 
    251 =head2 whatis WORD [WORD2 [...]] 
     252=head2 whatis [-d distrib] [-r release] [-a arch] [-s]  WORD [WORD2 [...]] 
    252253 
    253254Search rpm having description containing words given as arguments 
     
    264265            'd=s' => \$reqspec->{distribution}, 
    265266            'v=s' => \$reqspec->{release}, 
     267            'r=s' => \$reqspec->{release}, 
    266268            'a=s' => \$reqspec->{arch}, 
    267269            's'   => sub { $reqspec->{src} = 1 }, 
     
    301303} 
    302304 
    303 =head2 version [-s] NAME 
     305=head2 version [-d distrib] [-r release] [-a arch] [-s] NAME 
    304306 
    305307Show the version of package C<NAME>. 
     
    317319            'd=s' => \$reqspec->{distribution}, 
    318320            'v=s' => \$reqspec->{release}, 
     321            'r=s' => \$reqspec->{release}, 
    319322            'a=s' => \$reqspec->{arch}, 
    320323            's'   => sub { $reqspec->{src} = 1 }, 
     
    354357=head2 v 
    355358 
    356 C<v> is an alias for L<version> command. 
     359C<v> is an alias for C<version> command. 
    357360 
    358361=cut 
     
    363366} 
    364367 
    365 =head2 summary [-s] NAME 
     368=head2 summary [-d distrib] [-r release] [-a arch] [-s] NAME 
    366369 
    367370Show the summary of package C<NAME>. 
     
    386389} 
    387390 
    388 =head2 packager [-s] NAME 
     391=head2 packager [-d distrib] [-r release] [-a arch] [-s] NAME 
    389392 
    390393Show the packager of package C<NAME>. 
     
    409412} 
    410413 
    411 =head2 arch [-s] NAME 
     414=head2 arch [-d distrib] [-r release] [-a arch] [-s] NAME 
    412415 
    413416Show the architecture of package C<NAME>. 
     
    432435} 
    433436 
    434 =head2 url [-s] NAME 
     437=head2 url [-d distrib] [-r release] [-a arch] [-s] NAME 
    435438 
    436439Show the url of package C<NAME>. 
     
    455458} 
    456459 
    457 =head2 group [-s] NAME 
     460=head2 group [-d distrib] [-r release] [-a arch] [-s] NAME 
    458461 
    459462Show the group of package C<NAME>. 
     
    478481} 
    479482 
    480 =head2 license [-s] NAME 
     483=head2 license [-d distrib] [-r release] [-a arch] [-s] NAME 
    481484 
    482485Show the license of package C<NAME>. 
     
    501504} 
    502505 
    503 =head2 buildtime [-s] NAME 
     506=head2 buildtime [-d distrib] [-r release] [-a arch] [-s] NAME 
    504507 
    505508Show the build time of package C<NAME>. 
     
    535538} 
    536539 
    537 =head2 cookie [-s] NAME 
     540=head2 cookie [-d distrib] [-r release] [-a arch] [-s] NAME 
    538541 
    539542Show the C<cookie> tag of package C<NAME>. 
     
    547550} 
    548551 
    549 =head2 sourcerpm NAME 
     552=head2 sourcerpm [-d distrib] [-r release] [-a arch] [-s] NAME 
    550553 
    551554Show the C<sourcerpm> tag of package C<NAME>. 
     
    571574} 
    572575 
    573 =head2 rpmversion NAME 
     576=head2 rpmversion [-d distrib] [-r release] [-a arch] [-s] NAME 
    574577 
    575578Show the C<rpmversion> tag of package C<NAME>. 
     
    596599 
    597600 
    598 =head2 buildhost NAME 
     601=head2 buildhost [-d distrib] [-r release] [-a arch] [-s] NAME 
    599602 
    600603Show the C<buildhost> tag of package C<NAME>. 
     
    634637 
    635638 
    636 =head2 distribution NAME 
     639=head2 distribution [-d distrib] [-r release] [-a arch] [-s] NAME 
    637640 
    638641Show the C<distribution> tag of package C<NAME>. 
     
    660663 
    661664 
    662 =head2 vendor NAME 
     665=head2 vendor [-d distrib] [-r release] [-a arch] [-s] NAME 
    663666 
    664667Show the C<vendor> tag of package C<NAME>. 
     
    672675} 
    673676 
    674  
     677=head2 qf [-d distrib] [-r release] [-a arch] [-s] NAME FMT 
     678 
     679Perform an rpm -q --qf C<FMT> on package C<NAME>. 
     680 
     681=cut 
    675682 
    676683sub qf : XMLRPC { 
     
    683690            'd=s' => \$reqspec->{distribution}, 
    684691            'v=s' => \$reqspec->{release}, 
     692            'r=s' => \$reqspec->{release}, 
    685693            'a=s' => \$reqspec->{arch}, 
    686694            's'   => sub { $reqspec->{src} = 1 }, 
     
    723731} 
    724732 
    725 =head2 more NAME 
     733=head2 more [-d distrib] [-r release] [-a arch] [-s]  NAME 
    726734 
    727735Show url where details about package named C<NAME> can be found 
     
    738746            'd=s' => \$reqspec->{distribution}, 
    739747            'v=s' => \$reqspec->{release}, 
     748            'r=s' => \$reqspec->{release}, 
    740749            'a=s' => \$reqspec->{arch}, 
    741750            's'   => sub { $reqspec->{src} = 1 }, 
     
    772781} 
    773782 
    774 =head2 buildfrom NAME 
     783=head2 buildfrom [-d distrib] [-r release] [-a arch] NAME 
    775784 
    776785Return the list of package build from source package named C<NAME> 
     
    786795            'd=s' => \$reqspec->{distribution}, 
    787796            'v=s' => \$reqspec->{release}, 
     797            'r=s' => \$reqspec->{release}, 
    788798            'a=s' => \$reqspec->{arch}, 
    789799        }, @args ]) }; 
     
    822832} 
    823833 
    824 =head2 findfile FILE 
     834=head2 findfile [-d distrib] [-r release] [-a arch] [-s] FILE 
    825835 
    826836Return the rpm owning the file C<FILE>.  
     
    838848            'd=s' => \$reqspec->{distribution}, 
    839849            'v=s' => \$reqspec->{release}, 
     850            'r=s' => \$reqspec->{release}, 
    840851            'a=s' => \$reqspec->{arch}, 
     852            's'   => \$reqspec->{src}, 
    841853        }, @args ]) }; 
    842854 
     
    873885} 
    874886 
     887=head2 what [-d distrib] [-r release] [-a arch] [-s] p|r|c|o|e|s DEP [SENSE [EVR]] 
     888 
     889Search rpm matching having matching dependencies (provides, requires, conflicts, 
     890obsoletes, enhanced or suggests) 
     891 
     892=cut 
     893 
    875894sub what : XMLRPC { 
    876895    my ($self, $c, $reqspec, @args) = @_; 
     
    880899            'd=s' => \$reqspec->{distribution}, 
    881900            'v=s' => \$reqspec->{release}, 
     901            'r=s' => \$reqspec->{release}, 
    882902            'a=s' => \$reqspec->{arch}, 
    883903            's'   => \$reqspec->{src}, 
     
    911931} 
    912932 
    913 =head2 maint RPMNAME 
     933=head2 maint [-d distrib] [-r release] [-a arch] [-s] RPMNAME 
    914934 
    915935Show the maintainers for the rpm named C<RPMNAME>. 
     
    925945            'd=s' => \$reqspec->{distribution}, 
    926946            'v=s' => \$reqspec->{release}, 
     947            'r=s' => \$reqspec->{release}, 
    927948            'a=s' => \$reqspec->{arch}, 
     949            's'   => \$reqspec->{src}, 
    928950        }, @args ]) }; 
    929951    if (!$c->forward('/distrib/exists', [ $reqspec ])) { 
Note: See TracChangeset for help on using the changeset viewer.