1 package Gruntmaster
::App
;
6 our $VERSION = '5999.000_015';
8 use App
::Cmd
::Setup
'-app';
11 sub allow_any_unambiguous_abbrev
() { 1 }
12 sub default_command
{ 'commands' } # Show usage when called without arguments
15 (['table' => 'hidden', {one_of
=> [
16 ['contests|ct|c' => 'Act on contests'],
17 ['jobs|j' => 'Act on jobs'],
18 ['problems|pb|p' => 'Act on problems'],
19 ['users|us|u' => 'Act on users']]}])
22 sub table
{ shift->global_options->{table
} }
25 dbinit
$ENV{GRUNTMASTER_DSN
} // 'dbi:Pg:';
26 shift->SUPER::run
(@_);
36 Gruntmaster::App - command-line interface to the Gruntmaster 6000 database
41 Gruntmaster::App->run;
45 Gruntmaster::App is a command-line interface to the Gruntmaster 6000
46 database. It is the backend of the B<gm> script.
54 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
56 =head1 COPYRIGHT AND LICENSE
58 Copyright (C) 2014-2015 by Marius Gavrilescu
60 This library is free software; you can redistribute it and/or modify
61 it under the same terms as Perl itself, either Perl version 5.20.1 or,
62 at your option, any later version of Perl 5 you may have available.