#PUBLISH genpage => "pb/$id.html";
}
+sub cmd_get{
+ my ($id, $col) = @ARGV;
+ say $db->problem($id)->get_column($col)
+}
+
sub cmd_list{
local $, = "\n";
say map {$_->id} $db->problems->all;
=head1 SYNOPSIS
- gruntmaster-problem [--contest=mycontest] add problem_id
- gruntmaster-problem [--contest=mycontest] list
- gruntmaster-problem [--contest=mycontest] rm problem_id
- gruntmaster-problem [--contest=mycontest] show problem_id
- gruntmaster-problem [--contest=mycontest] set [--file] problem_id key value
+ gruntmaster-problem add problem_id
+ gruntmaster-problem list
+ gruntmaster-problem rm problem_id
+ gruntmaster-problem show problem_id
+ gruntmaster-problem set [--file] problem_id key value
+ gruntmaster-problem get problem_id key
=head1 DESCRIPTION
Sets the I<key> configuration option of problem I<id> to I<value>.
+=item B<get> I<id> I<key>
+
+Get the value of the I<key> configuration option of problem I<id>
+
=item B<set> --file I<id> I<key> I<file>
Sets the I<key> configuration option of problem I<id> to the contents of the file I<file>.