]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/App/Command/Rm.pm
1 package Gruntmaster
::App
::Command
::Rm
;
6 our $VERSION = '5999.000_004';
8 use Gruntmaster
::App
'-command';
11 sub usage_desc
{ '%c [-cjpu] rm id' }
14 my ($self, $opt, $args) = @_;
16 $self->usage_error('No table selected') unless $self->app->table;
17 $self->usage_error('Wrong number of arguments') if @args != 1;
21 my ($self, $opt, $args) = @_;
23 say 'Rows deleted: ', db
->delete($self->app->table, {id
=> $obj})->rows
33 Gruntmaster::App::Command::Rm - remove an object
44 The rm command takes the ID of an object and removes it.
52 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
54 =head1 COPYRIGHT AND LICENSE
56 Copyright (C) 2015 by Marius Gavrilescu
58 This library is free software; you can redistribute it and/or modify
59 it under the same terms as Perl itself, either Perl version 5.20.1 or,
60 at your option, any later version of Perl 5 you may have available.
This page took 0.056851 seconds and 4 git commands to generate.