]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/App/Command/Show.pm
45f3eefcf2348b22d8f04b1a1c543c69c9938007
1 package Gruntmaster
::App
::Command
::Show
;
6 our $VERSION = '5999.000_004';
8 use Gruntmaster
::App
'-command';
10 use POSIX qw
/strftime/;
12 sub usage_desc
{ '%c [-cjpu] show id' }
15 contests
=> \
&show_contest
,
17 problems
=> \
&show_problem
,
22 my ($self, $opt, $args) = @_;
24 $self->usage_error('No table selected') unless $self->app->table;
25 $self->usage_error('Wrong number of arguments') if @args != 1;
29 my ($self, $opt, $args) = @_;
31 $TABLE{$self->app->table}->(%{db
->select($self->app->table, '*', {id
=> $obj})->hash});
36 $columns{$_} = strftime
'%c', localtime $columns{$_} for qw
/start stop/;
40 Owner: $columns{owner}
41 Start: $columns{start}
48 $columns{date
} = strftime
'%c', localtime $columns{date
};
50 no warnings
'uninitialized';
52 Problem: $columns{problem}
53 Contest: $columns{contest}
54 Owner: $columns{owner}
56 Private: @{[$columns{private} ? 'Yes' : 'No']}
57 Format: $columns{format}
58 Result: $columns{result} ($columns{result_text})
65 no warnings
'uninitialized';
68 Author: $columns{author}
69 Statement written by: $columns{writer}
70 Owner: $columns{owner}
71 Level: $columns{level}
72 Value (points): $columns{value}
73 Private: @{[$columns{private} ? 'Yes' : 'No']}
75 Generator: $columns{generator}
76 Runner: $columns{runner}
77 Judge: $columns{judge}
78 Test count: $columns{testcnt}
79 Time limit: $columns{timeout}
80 Output limit (bytes): $columns{olimit}
86 $columns{since
} = strftime
'%c', localtime $columns{since
};
88 no warnings
'uninitialized';
90 Email: $columns{name} <$columns{email}>
91 Phone: $columns{phone}
92 Since: $columns{since}
93 Admin: @{[$columns{admin} ? 'Yes' : 'No']}
94 Level: $columns{level}
95 University: $columns{university}
97 Country: $columns{country}
This page took 0.047426 seconds and 4 git commands to generate.