#!perl

# Note: This script is a CLI for Riap function /Business/ID/Mandiri/list_mandiri_branches
# and generated automatically using Perinci::CmdLine::Gen version 0.495

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2020-03-18'; # DATE
our $DIST = 'App-IndonesianBankingUtils'; # DIST
our $VERSION = '0.144'; # VERSION

use 5.010001;
use strict;
use warnings;

use Perinci::CmdLine::Any;

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/Business/ID/Mandiri/list_mandiri_branches",
    program_name => "list-mandiri-branches",
);

$cmdline->run;

# ABSTRACT: Mandiri branches
# PODNAME: list-mandiri-branches

__END__

=pod

=encoding UTF-8

=head1 NAME

list-mandiri-branches - Mandiri branches

=head1 VERSION

This document describes version 0.144 of list-mandiri-branches (from Perl distribution App-IndonesianBankingUtils), released on 2020-03-18.

=head1 SYNOPSIS

Usage:

 % list-mandiri-branches [options] [query]

=head1 DESCRIPTION

REPLACE ME

=head1 OPTIONS

C<*> marks required options.

=head2 Configuration options

=over

=item B<--config-path>=I<s>, B<-c>

Set path to configuration file.

=item B<--config-profile>=I<s>, B<-P>

Set configuration profile to use.

=item B<--no-config>, B<-C>

Do not use any configuration file.

=back

=head2 Environment options

=over

=item B<--no-env>

Do not read environment for default options.

=back

=head2 Field selection options

=over

=item B<--detail>, B<-l>

Return array of full records instead of just ID fields.

By default, only the key (ID) field is returned per result entry.


=item B<--exclude-field>=I<s@>

Select fields to return.

Can be specified multiple times.

=item B<--exclude-fields-json>=I<s>

Select fields to return (JSON-encoded).

See C<--exclude-field>.

=item B<--field>=I<s@>

Select fields to return.

Default value:

 ["code"]

Can be specified multiple times.

=item B<--fields-json>=I<s>

Select fields to return (JSON-encoded).

See C<--field>.

=item B<--with-field-names>

Return field names in each record (as hash/associative array).

When enabled, function will return each record as hash/associative array
(field name => value pairs). Otherwise, function will return each record
as list/array (field value, field value, ...).


=back

=head2 Filtering for city_code options

=over

=item B<--city-code-contains>=I<s>

Only return records where the 'city_code' field contains specified text.

=item B<--city-code-in-json>=I<s>

Only return records where the 'city_code' field is in the specified values (JSON-encoded).

See C<--city-code-in>.

=item B<--city-code-in>=I<s@>

Only return records where the 'city_code' field is in the specified values.

Can be specified multiple times.

=item B<--city-code-is>=I<s>

Only return records where the 'city_code' field equals specified value.

=item B<--city-code-isnt>=I<s>

Only return records where the 'city_code' field does not equal specified value.

=item B<--city-code-max>=I<s>

Only return records where the 'city_code' field is less than or equal to specified value.

=item B<--city-code-min>=I<s>

Only return records where the 'city_code' field is greater than or equal to specified value.

=item B<--city-code-not-contains>=I<s>

Only return records where the 'city_code' field does not contain specified text.

=item B<--city-code-not-in-json>=I<s>

Only return records where the 'city_code' field is not in the specified values (JSON-encoded).

See C<--city-code-not-in>.

=item B<--city-code-not-in>=I<s@>

Only return records where the 'city_code' field is not in the specified values.

Can be specified multiple times.

=item B<--city-code-xmax>=I<s>

Only return records where the 'city_code' field is less than specified value.

=item B<--city-code-xmin>=I<s>

Only return records where the 'city_code' field is greater than specified value.

=item B<--city-code>=I<s>

Only return records where the 'city_code' field equals specified value.

=back

=head2 Filtering for city_name options

=over

=item B<--city-name-contains>=I<s>

Only return records where the 'city_name' field contains specified text.

=item B<--city-name-in-json>=I<s>

Only return records where the 'city_name' field is in the specified values (JSON-encoded).

See C<--city-name-in>.

=item B<--city-name-in>=I<s@>

Only return records where the 'city_name' field is in the specified values.

Can be specified multiple times.

=item B<--city-name-is>=I<s>

Only return records where the 'city_name' field equals specified value.

=item B<--city-name-isnt>=I<s>

Only return records where the 'city_name' field does not equal specified value.

=item B<--city-name-max>=I<s>

Only return records where the 'city_name' field is less than or equal to specified value.

=item B<--city-name-min>=I<s>

Only return records where the 'city_name' field is greater than or equal to specified value.

=item B<--city-name-not-contains>=I<s>

Only return records where the 'city_name' field does not contain specified text.

=item B<--city-name-not-in-json>=I<s>

Only return records where the 'city_name' field is not in the specified values (JSON-encoded).

See C<--city-name-not-in>.

=item B<--city-name-not-in>=I<s@>

Only return records where the 'city_name' field is not in the specified values.

Can be specified multiple times.

=item B<--city-name-xmax>=I<s>

Only return records where the 'city_name' field is less than specified value.

=item B<--city-name-xmin>=I<s>

Only return records where the 'city_name' field is greater than specified value.

=item B<--city-name>=I<s>

Only return records where the 'city_name' field equals specified value.

=back

=head2 Filtering for code options

=over

=item B<--code-contains>=I<s>

Only return records where the 'code' field contains specified text.

=item B<--code-in-json>=I<s>

Only return records where the 'code' field is in the specified values (JSON-encoded).

See C<--code-in>.

=item B<--code-in>=I<s@>

Only return records where the 'code' field is in the specified values.

Can be specified multiple times.

=item B<--code-is>=I<s>

Only return records where the 'code' field equals specified value.

=item B<--code-isnt>=I<s>

Only return records where the 'code' field does not equal specified value.

=item B<--code-max>=I<s>

Only return records where the 'code' field is less than or equal to specified value.

=item B<--code-min>=I<s>

Only return records where the 'code' field is greater than or equal to specified value.

=item B<--code-not-contains>=I<s>

Only return records where the 'code' field does not contain specified text.

=item B<--code-not-in-json>=I<s>

Only return records where the 'code' field is not in the specified values (JSON-encoded).

See C<--code-not-in>.

=item B<--code-not-in>=I<s@>

Only return records where the 'code' field is not in the specified values.

Can be specified multiple times.

=item B<--code-xmax>=I<s>

Only return records where the 'code' field is less than specified value.

=item B<--code-xmin>=I<s>

Only return records where the 'code' field is greater than specified value.

=item B<--code>=I<s>

Only return records where the 'code' field equals specified value.

=back

=head2 Filtering for ctime options

=over

=item B<--ctime-contains>=I<s>

Only return records where the 'ctime' field contains specified text.

=item B<--ctime-in-json>=I<s>

Only return records where the 'ctime' field is in the specified values (JSON-encoded).

See C<--ctime-in>.

=item B<--ctime-in>=I<s@>

Only return records where the 'ctime' field is in the specified values.

Can be specified multiple times.

=item B<--ctime-is>=I<s>

Only return records where the 'ctime' field equals specified value.

=item B<--ctime-isnt>=I<s>

Only return records where the 'ctime' field does not equal specified value.

=item B<--ctime-max>=I<s>

Only return records where the 'ctime' field is less than or equal to specified value.

=item B<--ctime-min>=I<s>

Only return records where the 'ctime' field is greater than or equal to specified value.

=item B<--ctime-not-contains>=I<s>

Only return records where the 'ctime' field does not contain specified text.

=item B<--ctime-not-in-json>=I<s>

Only return records where the 'ctime' field is not in the specified values (JSON-encoded).

See C<--ctime-not-in>.

=item B<--ctime-not-in>=I<s@>

Only return records where the 'ctime' field is not in the specified values.

Can be specified multiple times.

=item B<--ctime-xmax>=I<s>

Only return records where the 'ctime' field is less than specified value.

=item B<--ctime-xmin>=I<s>

Only return records where the 'ctime' field is greater than specified value.

=item B<--ctime>=I<s>

Only return records where the 'ctime' field equals specified value.

=back

=head2 Filtering for name options

=over

=item B<--name-contains>=I<s>

Only return records where the 'name' field contains specified text.

=item B<--name-in-json>=I<s>

Only return records where the 'name' field is in the specified values (JSON-encoded).

See C<--name-in>.

=item B<--name-in>=I<s@>

Only return records where the 'name' field is in the specified values.

Can be specified multiple times.

=item B<--name-is>=I<s>

Only return records where the 'name' field equals specified value.

=item B<--name-isnt>=I<s>

Only return records where the 'name' field does not equal specified value.

=item B<--name-max>=I<s>

Only return records where the 'name' field is less than or equal to specified value.

=item B<--name-min>=I<s>

Only return records where the 'name' field is greater than or equal to specified value.

=item B<--name-not-contains>=I<s>

Only return records where the 'name' field does not contain specified text.

=item B<--name-not-in-json>=I<s>

Only return records where the 'name' field is not in the specified values (JSON-encoded).

See C<--name-not-in>.

=item B<--name-not-in>=I<s@>

Only return records where the 'name' field is not in the specified values.

Can be specified multiple times.

=item B<--name-xmax>=I<s>

Only return records where the 'name' field is less than specified value.

=item B<--name-xmin>=I<s>

Only return records where the 'name' field is greater than specified value.

=item B<--name>=I<s>

Only return records where the 'name' field equals specified value.

=back

=head2 Filtering for note options

=over

=item B<--note-contains>=I<s>

Only return records where the 'note' field contains specified text.

=item B<--note-in-json>=I<s>

Only return records where the 'note' field is in the specified values (JSON-encoded).

See C<--note-in>.

=item B<--note-in>=I<s@>

Only return records where the 'note' field is in the specified values.

Can be specified multiple times.

=item B<--note-is>=I<s>

Only return records where the 'note' field equals specified value.

=item B<--note-isnt>=I<s>

Only return records where the 'note' field does not equal specified value.

=item B<--note-max>=I<s>

Only return records where the 'note' field is less than or equal to specified value.

=item B<--note-min>=I<s>

Only return records where the 'note' field is greater than or equal to specified value.

=item B<--note-not-contains>=I<s>

Only return records where the 'note' field does not contain specified text.

=item B<--note-not-in-json>=I<s>

Only return records where the 'note' field is not in the specified values (JSON-encoded).

See C<--note-not-in>.

=item B<--note-not-in>=I<s@>

Only return records where the 'note' field is not in the specified values.

Can be specified multiple times.

=item B<--note-xmax>=I<s>

Only return records where the 'note' field is less than specified value.

=item B<--note-xmin>=I<s>

Only return records where the 'note' field is greater than specified value.

=item B<--note>=I<s>

Only return records where the 'note' field equals specified value.

=back

=head2 Filtering options

=over

=item B<--query>=I<s>, B<-q>

Search.

=back

=head2 Ordering options

=over

=item B<--random>

Return records in random order.

=item B<--sort-json>=I<s>

Order records according to certain field(s) (JSON-encoded).

See C<--sort>.

=item B<--sort>=I<s@>

Order records according to certain field(s).

A list of field names separated by comma. Each field can be prefixed with '-' to
specify descending order instead of the default ascending.


Can be specified multiple times.

=back

=head2 Output options

=over

=item B<--format>=I<s>

Choose output format, e.g. json, text.

Default value:

 undef

=item B<--json>

Set output format to json.

=item B<--naked-res>

When outputing as JSON, strip result envelope.

Default value:

 0

By default, when outputing as JSON, the full enveloped result is returned, e.g.:

    [200,"OK",[1,2,3],{"func.extra"=>4}]

The reason is so you can get the status (1st element), status message (2nd
element) as well as result metadata/extra result (4th element) instead of just
the result (3rd element). However, sometimes you want just the result, e.g. when
you want to pipe the result for more post-processing. In this case you can use
`--naked-res` so you just get:

    [1,2,3]


=item B<--page-result>

Filter output through a pager.

=back

=head2 Paging options

=over

=item B<--result-limit>=I<s>

Only return a certain number of records.

=item B<--result-start>=I<s>

Only return starting from the n'th record.

Default value:

 1

=back

=head2 Other options

=over

=item B<--help>, B<-h>, B<-?>

Display help message and exit.

=item B<--version>, B<-v>

Display program's version and exit.

=back

=head1 COMPLETION

This script has shell tab completion capability with support for several
shells.

=head2 bash

To activate bash completion for this script, put:

 complete -C list-mandiri-branches list-mandiri-branches

in your bash startup (e.g. F<~/.bashrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.

It is recommended, however, that you install modules using L<cpanm-shcompgen>
which can activate shell completion for scripts immediately.

=head2 tcsh

To activate tcsh completion for this script, put:

 complete list-mandiri-branches 'p/*/`list-mandiri-branches`/'

in your tcsh startup (e.g. F<~/.tcshrc>). Your next shell session will then
recognize tab completion for the command. Or, you can also directly execute the
line above in your shell to activate immediately.

It is also recommended to install L<shcompgen> (see above).

=head2 other shells

For fish and zsh, install L<shcompgen> as described above.

=head1 CONFIGURATION FILE

This script can read configuration files. Configuration files are in the format of L<IOD>, which is basically INI with some extra features.

By default, these names are searched for configuration filenames (can be changed using C<--config-path>): F<~/.config/list-mandiri-branches.conf>, F<~/list-mandiri-branches.conf>, or F</etc/list-mandiri-branches.conf>.

All found files will be read and merged.

To disable searching for configuration files, pass C<--no-config>.

You can put multiple profiles in a single file by using section names like C<[profile=SOMENAME]> or C<[SOMESECTION profile=SOMENAME]>. Those sections will only be read if you specify the matching C<--config-profile SOMENAME>.

You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program matches.

Finally, you can filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...]>. If you only want a section to be read when the value of an environment variable has value equals something: C<[env=HOSTNAME=blink ...]> or C<[SOMESECTION env=HOSTNAME=blink ...]>. If you only want a section to be read when the value of an environment variable does not equal something: C<[env=HOSTNAME!=blink ...]> or C<[SOMESECTION env=HOSTNAME!=blink ...]>. If you only want a section to be read when an environment variable contains something: C<[env=HOSTNAME*=server ...]> or C<[SOMESECTION env=HOSTNAME*=server ...]>. Note that currently due to simplistic parsing, there must not be any whitespace in the value being compared because it marks the beginning of a new section filter or section name.

List of available configuration parameters:

 city_code (see --city-code)
 city_code.contains (see --city-code-contains)
 city_code.in (see --city-code-in)
 city_code.is (see --city-code-is)
 city_code.isnt (see --city-code-isnt)
 city_code.max (see --city-code-max)
 city_code.min (see --city-code-min)
 city_code.not_contains (see --city-code-not-contains)
 city_code.not_in (see --city-code-not-in)
 city_code.xmax (see --city-code-xmax)
 city_code.xmin (see --city-code-xmin)
 city_name (see --city-name)
 city_name.contains (see --city-name-contains)
 city_name.in (see --city-name-in)
 city_name.is (see --city-name-is)
 city_name.isnt (see --city-name-isnt)
 city_name.max (see --city-name-max)
 city_name.min (see --city-name-min)
 city_name.not_contains (see --city-name-not-contains)
 city_name.not_in (see --city-name-not-in)
 city_name.xmax (see --city-name-xmax)
 city_name.xmin (see --city-name-xmin)
 code (see --code)
 code.contains (see --code-contains)
 code.in (see --code-in)
 code.is (see --code-is)
 code.isnt (see --code-isnt)
 code.max (see --code-max)
 code.min (see --code-min)
 code.not_contains (see --code-not-contains)
 code.not_in (see --code-not-in)
 code.xmax (see --code-xmax)
 code.xmin (see --code-xmin)
 ctime (see --ctime)
 ctime.contains (see --ctime-contains)
 ctime.in (see --ctime-in)
 ctime.is (see --ctime-is)
 ctime.isnt (see --ctime-isnt)
 ctime.max (see --ctime-max)
 ctime.min (see --ctime-min)
 ctime.not_contains (see --ctime-not-contains)
 ctime.not_in (see --ctime-not-in)
 ctime.xmax (see --ctime-xmax)
 ctime.xmin (see --ctime-xmin)
 detail (see --detail)
 exclude_fields (see --exclude-field)
 fields (see --field)
 format (see --format)
 naked_res (see --naked-res)
 name (see --name)
 name.contains (see --name-contains)
 name.in (see --name-in)
 name.is (see --name-is)
 name.isnt (see --name-isnt)
 name.max (see --name-max)
 name.min (see --name-min)
 name.not_contains (see --name-not-contains)
 name.not_in (see --name-not-in)
 name.xmax (see --name-xmax)
 name.xmin (see --name-xmin)
 note (see --note)
 note.contains (see --note-contains)
 note.in (see --note-in)
 note.is (see --note-is)
 note.isnt (see --note-isnt)
 note.max (see --note-max)
 note.min (see --note-min)
 note.not_contains (see --note-not-contains)
 note.not_in (see --note-not-in)
 note.xmax (see --note-xmax)
 note.xmin (see --note-xmin)
 query (see --query)
 random (see --random)
 result_limit (see --result-limit)
 result_start (see --result-start)
 sort (see --sort)
 with_field_names (see --with-field-names)

=head1 ENVIRONMENT

=head2 LIST_MANDIRI_BRANCHES_OPT => str

Specify additional command-line options.

=head1 FILES

F<~/.config/list-mandiri-branches.conf>

F<~/list-mandiri-branches.conf>

F</etc/list-mandiri-branches.conf>

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-IndonesianBankingUtils>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-IndonesianBankingUtils>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-IndonesianBankingUtils>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2020, 2019, 2018, 2017, 2016, 2015 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut