| 1 | package App::SD::CLI::Command::Attachment::Content; | ||
| 2 | use Any::Moose; | ||
| 3 | extends 'Prophet::CLI::Command::Show'; | ||
| 4 | with 'App::SD::CLI::Model::Attachment'; | ||
| 5 | with 'App::SD::CLI::Command'; | ||
| 6 | |||
| 7 | sub run { | ||
| 8 | my $self = shift; | ||
| 9 | |||
| 10 | $self->print_usage if $self->has_arg('h'); | ||
| 11 | |||
| 12 | my $record = $self->_get_record_object; | ||
| 13 | $record->load(uuid => $self->uuid); | ||
| 14 | print $record->prop('content'); | ||
| 15 | } | ||
| 16 | |||
| 17 | __PACKAGE__->meta->make_immutable; | ||
| 18 | no Any::Moose; | ||
| 19 | |||
| 20 | 1; | ||
| 21 |