Add show_job and show_user to gm command
[gruntmaster-data.git] / lib / Gruntmaster / App / Command / List.pm
CommitLineData
92f74061
MG
1package Gruntmaster::App::Command::List;
2
3use 5.014000;
4use warnings;
5
6our $VERSION = '5999.000_004';
7
8use Gruntmaster::App '-command';
9use Gruntmaster::Data;
10
11sub usage_desc { '%c [-cjpu] list' }
12
13sub validate_args {
14 my ($self, $opt, $args) = @_;
15 my @args = @$args;
16 $self->usage_error('No table selected') unless $self->app->table;
17}
18
19sub execute {
20 my ($self, $opt, $args) = @_;
21 say join "\n", db->select($self->app->table, 'id', {}, 'id')->flat
22}
23
241;
25__END__
This page took 0.011538 seconds and 4 git commands to generate.