2022-11-09 13:36:15 +01:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
2023-05-17 09:52:11 +02:00
|
|
|
use v5.36.0;
|
|
|
|
|
2022-11-09 13:36:15 +01:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Mojo::File qw(curfile);
|
|
|
|
use lib curfile->dirname->sibling('lib')->to_string;
|
|
|
|
use Mojolicious::Commands;
|
|
|
|
|
|
|
|
# Start command line interface for application
|
2023-05-17 09:52:11 +02:00
|
|
|
my @images = curfile->dirname->sibling('public')->child('img')
|
|
|
|
->list->grep(qr/\.generated\.png$/)->each;
|
|
|
|
for my $image (@images) {
|
|
|
|
system 'rm', '-v', $image;
|
|
|
|
}
|
|
|
|
|
2023-05-09 03:20:23 +02:00
|
|
|
Mojolicious::Commands->start_app('OwlcodeTech');
|