App-wordlist
    
    
  
  
  
view release on metacpan or search on metacpan
0.271   2020-05-21  Released-By: PERLANCAR; Urgency: medium
	- [ux] Allow specifying wildcard in -w, e.g. -w EN::* or -w EN::**.
	- Add a couple of logging statements.
0.270   2020-05-18  Released-By: PERLANCAR; Urgency: medium
	- Re-add --random (-r) option; note that specifying this option
	  will disable streaming output.
0.269   2020-05-04  Released-By: PERLANCAR; Urgency: medium
	- Enable logging in CLI.
0.268   2020-05-02  Released-By: PERLANCAR; Urgency: medium; Backward-Incompatible: yes
	- [incompatible change] CLI now streams output; output starts
          immediately. This break code that calls App::wordlist::wordlist() and
          expects an array payload.
        - Do not stop when a WordList::* module cannot be loaded; print error
          message but continue.
	- [removed] Remove option --random (-r) because it is incompatible with
	  streaming output. UPDATE 2020-05-18: this option has been re-added in
	  0.270.
	- wordlist -l --detail now also shows module path.
0.267   2020-05-01  Released-By: PERLANCAR; Urgency: medium
	- Remove --type (-t) option; remove the use of deprecated
	  WordList::Namespace.
    *   or => *bool*
        Instead of printing words that must match all queries (the default),
        print words that match any query.
    *   random => *bool*
        Pick random words.
        If set to true, then streaming will be turned off. All words will be
        gathered first, then words will be chosen randomly from the gathered
        list.
    *   wordlist_bundles => *array[str]*
        Select one or more wordlist bundle
        (Acme::CPANModules::WordListBundle::*) modules.
    *   wordlists => *array[str]*
lib/App/wordlist.pm view on Meta::CPAN
        num => {
            summary => 'Return (at most) this number of words (0 = unlimited)',
            schema  => ['int*', min=>0, max=>9999],
            default => 0,
            cmdline_aliases => {n=>{}},
        },
        random => {
            summary => 'Pick random words',
            description => <<'_',
If set to true, then streaming will be turned off. All words will be gathered
first, then words will be chosen randomly from the gathered list.
_
            schema  => 'bool*',
            cmdline_aliases => {r=>{}},
        },
        %argspecopt_wordlists,
        %argspecopt_wordlist_bundles,
lib/App/wordlist.pm view on Meta::CPAN
Return (at most) this number of words (0 = unlimited).
=item * B<or> => I<bool>
Instead of printing words that must match all queries (the default), print words that match any query.
=item * B<random> => I<bool>
Pick random words.
If set to true, then streaming will be turned off. All words will be gathered
first, then words will be chosen randomly from the gathered list.
=item * B<wordlist_bundles> => I<array[str]>
Select one or more wordlist bundle (Acme::CPANModules::WordListBundle::*) modules.
=item * B<wordlists> => I<array[str]>
Select one or more wordlist modules.
script/_wordlist view on Meta::CPAN
our $DATE = '2025-03-07'; # DATE
our $DIST = 'App-wordlist'; # DIST
our $VERSION = '0.295'; # VERSION
die "Please run this script under shell completion\n" unless $ENV{COMP_LINE} || $ENV{COMMAND_LINE};
# require extra modules
use App::wordlist ();
my $args = {load_module=>["App::wordlist"],program_name=>"wordlist",read_config=>0,read_env=>0,skip_format=>undef,subcommands=>undef,url=>"/App/wordlist/wordlist"};
my $meta = {_orig_args_as=>undef,_orig_result_naked=>undef,args=>{action=>{cmdline_aliases=>{L=>{code=>sub{package App::wordlist;use warnings;use strict;no feature;use feature ':5.10';my $args = shift();$$args{'action'} = 'list_cpan'},is_flag=>1,summ...
my $sc_metas = {};
my $copts = {format=>{default=>undef,description=>"\nOutput can be displayed in multiple formats, and a suitable default format is\nchosen depending on the application and/or whether output destination is\ninteractive terminal (i.e. whether output is...
my $r = {common_opts=>$copts};
# get words
my $shell;
my ($words, $cword);
script/wordlist view on Meta::CPAN
# load modules
### declare global variables
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2025-03-07'; # DATE
our $DIST = 'App-wordlist'; # DIST
our $VERSION = '0.295'; # VERSION
my $_pci_metas = {""=>{args=>{action=>{cmdline_aliases=>{L=>{code=>sub{"DUMMY"},is_flag=>1,summary=>"List WordList::* modules on CPAN"},l=>{code=>sub{"DUMMY"},is_flag=>1,summary=>"List installed WordList::* modules"},s=>{code=>sub{"DUMMY"},is_flag=>1...
our $_pci_log_outputs = {};
our $_pci_meta_result_stream = 0;
our $_pci_meta_result_type;
our $_pci_meta_result_type_is_simple;
our $_pci_meta_skip_format = 0;
our $_pci_r = {naked_res=>0,read_config=>1,read_env=>1,subcommand_name=>""};
our %_pci_args;
### begin code_before_enable_logging
script/wordlist view on Meta::CPAN
Return (at most) this number of words (0 = unlimited).
Default value:
 0
=item B<--random>, B<-r>
Pick random words.
If set to true, then streaming will be turned off. All words will be gathered
first, then words will be chosen randomly from the gathered list.
=item B<-l>
List installed WordList::* modules.
See C<--action>.
=item B<-L>
script/wordlist view on Meta::CPAN
#        num => {
#            summary => 'Return (at most) this number of words (0 = unlimited)',
#            schema  => ['int*', min=>0, max=>9999],
#            default => 0,
#            cmdline_aliases => {n=>{}},
#        },
#        random => {
#            summary => 'Pick random words',
#            description => <<'_',
#
#If set to true, then streaming will be turned off. All words will be gathered
#first, then words will be chosen randomly from the gathered list.
#
#_
#            schema  => 'bool*',
#            cmdline_aliases => {r=>{}},
#        },
#
#        %argspecopt_wordlists,
#        %argspecopt_wordlist_bundles,
#
( run in 0.386 second using v1.01-cache-2.11-cpan-5dc5da66d9d )