]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/App/Command/List.pm
1 package Gruntmaster
::App
::Command
::List
;
6 our $VERSION = '5999.000_004';
8 use Gruntmaster
::App
'-command';
11 sub usage_desc
{ '%c [-cjpu] list' }
14 my ($self, $opt, $args) = @_;
16 $self->usage_error('No table selected') unless $self->app->table;
20 my ($self, $opt, $args) = @_;
21 say join "\n", db
->select($self->app->table, 'id', {}, 'id')->flat
31 Gruntmaster::App::Command::List - list all objects of a type
39 gm -j list # This is pretty pointless
54 The list command lists the IDs of all objects of a type, one per line.
63 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
65 =head1 COPYRIGHT AND LICENSE
67 Copyright (C) 2015 by Marius Gavrilescu
69 This library is free software; you can redistribute it and/or modify
70 it under the same terms as Perl itself, either Perl version 5.20.1 or,
71 at your option, any later version of Perl 5 you may have available.
This page took 0.048066 seconds and 4 git commands to generate.