6 use IO
::Prompter
[ -style
=> 'bold', '-stdio', '-verbatim' ];
7 use POSIX qw
/strftime/;
9 ##################################################
11 my $db = Gruntmaster
::Data
->connect('dbi:Pg:');
18 my %columns = $db->job(shift)->get_columns;
19 $columns{date
} = strftime
'%c', localtime $columns{date
};
20 $columns{private
} = $columns{private
} ?
'yes' : 'no';
24 Owner: $columns{owner}
25 Problem: $columns{problem}
26 Format: $columns{format}
27 Daemon: $columns{daemon}
28 Result text: $columns{result_text}
29 Private: $columns{private}
34 $db->job(shift)->delete
39 say $db->job($id)->get_column($col)
43 my ($id, %values) = @_;
44 $db->job($id)->update(\
%values)
48 $db->job(shift)->rerun
51 ##################################################
53 my $cmd = 'cmd_' . shift;
54 cmd_help
unless exists $main::{$cmd};
56 $cmd->(@ARGV) if exists $main::{$cmd};
65 gruntmaster-job - shell interface to Gruntmaster 6000 job log
69 gruntmaster-job show id
71 gruntmaster-job get id key
72 gruntmaster-job set id key value
73 gruntmaster-job rerun id
77 gruntmaster-job is a tool for managing jobs.
83 Prints detailed information about the job with id I<id>.
87 Removes the job with id I<id>.
89 =item B<set> I<id> I<key> I<value>
91 Sets the I<key> configuration option of job I<id> to I<value>.
93 =item B<get> I<id> I<key>
95 Get the value of the I<key> configuration option of job I<id>.
105 Marius Gavrilescu E<lt>marius@ieval.roE<gt>
107 =head1 COPYRIGHT AND LICENSE
109 Copyright (C) 2014 by Marius Gavrilescu
111 This library is free software; you can redistribute it and/or modify
112 it under the same terms as Perl itself, either Perl version 5.18.1 or,
113 at your option, any later version of Perl 5 you may have available.
This page took 0.024428 seconds and 4 git commands to generate.