use v5.14;
use Gruntmaster::Data;
-use Gruntmaster::Page::Submit;
use IO::Prompter [ -style => 'bold', '-stdio', '-verbatim' ];
use File::Slurp qw/read_file/;
my ($meta, $name, $prefix) = @_;
my $filename = prompt '$prefix filename', -complete => 'filenames';
$meta->{files}{$name}{content} = read_file $filename;
- $meta->{files}{$name}{format} = prompt '$prefix format', -menu => Gruntmaster::Page::Submit::FORMATS;
+ $meta->{files}{$name}{format} = prompt '$prefix format', -menu => [qw/C CPP MONO JAVA PASCAL PERL PYTHON/];
$meta->{files}{$name}{name} = prompt "$prefix filename [$filename]", -default => $filename;
}