App-CreateRandomFile
view release on metacpan or search on metacpan
* random byte sequences from a specified file
This function is not exported.
Arguments ('*' denotes required arguments):
* interactive => *bool* (default: 0)
Whether or not the program should be interactive.
If set to false then will not prompt interactively and usually will
proceed (unless for dangerous stuffs, in which case will bail
immediately.
* name* => *str*
(No description)
* overwrite => *bool* (default: 0)
Whether to overwrite existing file.
If se to true then will overwrite existing file without warning. The
default is to prompt, or bail (if not interactive).
* patterns => *array[str]*
(No description)
* random_bytes => *bool*
(No description)
* size* => *str*
lib/App/CreateRandomFile.pm view on Meta::CPAN
cmdline_aliases => { s => {} },
req => 1,
pos => 1,
},
interactive => {
summary => 'Whether or not the program should be interactive',
schema => 'bool',
default => 0,
description => <<'_',
If set to false then will not prompt interactively and usually will proceed
(unless for dangerous stuffs, in which case will bail immediately.
_
},
overwrite => {
summary => 'Whether to overwrite existing file',
schema => 'bool',
default => 0,
description => <<'_',
If se to true then will overwrite existing file without warning. The default is
to prompt, or bail (if not interactive).
_
},
random_bytes => {
schema => ['bool', is=>1],
},
patterns => {
'x.name.is_plural' => 1,
schema => ['array*', of=>['str*', min_len=>1], min_len=>1],
},
lib/App/CreateRandomFile.pm view on Meta::CPAN
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=item * B<interactive> => I<bool> (default: 0)
Whether or not the program should be interactive.
If set to false then will not prompt interactively and usually will proceed
(unless for dangerous stuffs, in which case will bail immediately.
=item * B<name>* => I<str>
(No description)
=item * B<overwrite> => I<bool> (default: 0)
Whether to overwrite existing file.
If se to true then will overwrite existing file without warning. The default is
to prompt, or bail (if not interactive).
=item * B<patterns> => I<array[str]>
(No description)
=item * B<random_bytes> => I<bool>
(No description)
=item * B<size>* => I<str>
script/create-random-file view on Meta::CPAN
C<*> marks required options.
=head2 Main options
=over
=item B<--interactive>
Whether or not the program should be interactive.
If set to false then will not prompt interactively and usually will proceed
(unless for dangerous stuffs, in which case will bail immediately.
=item B<--name>=I<s>*
(No description)
Can also be specified as the 1st command-line argument.
=item B<--overwrite>
Whether to overwrite existing file.
If se to true then will overwrite existing file without warning. The default is
to prompt, or bail (if not interactive).
=item B<--pattern>=I<s@>
(No description)
Can be specified multiple times.
=item B<--patterns-json>=I<s>
( run in 3.655 seconds using v1.01-cache-2.11-cpan-6aa56a78535 )