]>
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
This page took 0.043396 seconds and 4 git commands to generate.