NAME
list-android-releases - Android releases
VERSION
This document describes version 0.01 of list-android-releases (from Perl distribution App-ListAndroidReleases), released on 2015-11-06.
SYNOPSIS
Usage:
% list-android-releases [options] [query]
DESCRIPTION
REPLACE ME
OPTIONS
*
marks required options.
Configuration options
- --config-path=filename
-
Set path to configuration file.
Can be specified multiple times.
- --config-profile=s
-
Set configuration profile to use.
- --no-config
-
Do not use any configuration file.
Environment options
Field selection options
- --detail, -l
-
Return array of full records instead of just ID fields.
By default, only the key (ID) field is returned per result entry.
- --field=s@
-
Select fields to return.
Can be specified multiple times.
- --fields-json=s
-
Select fields to return (JSON-encoded).
See
--field
. - --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, ...).
Filtering for api_level options
- --api-level-in-json=s
-
Only return records where the 'api_level' field is in the specified values (JSON-encoded).
See
--api-level-in
. - --api-level-in=s@
-
Only return records where the 'api_level' field is in the specified values.
Can be specified multiple times.
- --api-level-is=i
-
Only return records where the 'api_level' field equals specified value.
- --api-level-isnt=i
-
Only return records where the 'api_level' field does not equal specified value.
- --api-level-max=i
-
Only return records where the 'api_level' field is less than or equal to specified value.
- --api-level-min=i
-
Only return records where the 'api_level' field is greater than or equal to specified value.
- --api-level-not-in-json=s
-
Only return records where the 'api_level' field is not in the specified values (JSON-encoded).
See
--api-level-not-in
. - --api-level-not-in=s@
-
Only return records where the 'api_level' field is not in the specified values.
Can be specified multiple times.
- --api-level-xmax=i
-
Only return records where the 'api_level' field is less than specified value.
- --api-level-xmin=i
-
Only return records where the 'api_level' field is greater than specified value.
- --api-level=i
-
Only return records where the 'api_level' field equals specified value.
Filtering for code_name options
- --code-name-contains=s
-
Only return records where the 'code_name' field contains specified text.
- --code-name-in-json=s
-
Only return records where the 'code_name' field is in the specified values (JSON-encoded).
See
--code-name-in
. - --code-name-in=s@
-
Only return records where the 'code_name' field is in the specified values.
Can be specified multiple times.
- --code-name-is=s
-
Only return records where the 'code_name' field equals specified value.
- --code-name-isnt=s
-
Only return records where the 'code_name' field does not equal specified value.
- --code-name-max=s
-
Only return records where the 'code_name' field is less than or equal to specified value.
- --code-name-min=s
-
Only return records where the 'code_name' field is greater than or equal to specified value.
- --code-name-not-contains=s
-
Only return records where the 'code_name' field does not contain specified text.
- --code-name-not-in-json=s
-
Only return records where the 'code_name' field is not in the specified values (JSON-encoded).
See
--code-name-not-in
. - --code-name-not-in=s@
-
Only return records where the 'code_name' field is not in the specified values.
Can be specified multiple times.
- --code-name-xmax=s
-
Only return records where the 'code_name' field is less than specified value.
- --code-name-xmin=s
-
Only return records where the 'code_name' field is greater than specified value.
- --code-name=s
-
Only return records where the 'code_name' field equals specified value.
Filtering for reldate options
- --reldate-in-json=s
-
Only return records where the 'reldate' field is in the specified values (JSON-encoded).
See
--reldate-in
. - --reldate-in=s@
-
Only return records where the 'reldate' field is in the specified values.
Can be specified multiple times.
- --reldate-is=s
-
Only return records where the 'reldate' field equals specified value.
- --reldate-isnt=s
-
Only return records where the 'reldate' field does not equal specified value.
- --reldate-max=s
-
Only return records where the 'reldate' field is less than or equal to specified value.
- --reldate-min=s
-
Only return records where the 'reldate' field is greater than or equal to specified value.
- --reldate-not-in-json=s
-
Only return records where the 'reldate' field is not in the specified values (JSON-encoded).
See
--reldate-not-in
. - --reldate-not-in=s@
-
Only return records where the 'reldate' field is not in the specified values.
Can be specified multiple times.
- --reldate-xmax=s
-
Only return records where the 'reldate' field is less than specified value.
- --reldate-xmin=s
-
Only return records where the 'reldate' field is greater than specified value.
- --reldate=s
-
Only return records where the 'reldate' field equals specified value.
Filtering for version options
- --version-arg=s
-
Only return records where the 'version' field equals specified value.
- --version-contains=s
-
Only return records where the 'version' field contains specified text.
- --version-in-json=s
-
Only return records where the 'version' field is in the specified values (JSON-encoded).
See
--version-in
. - --version-in=s@
-
Only return records where the 'version' field is in the specified values.
Can be specified multiple times.
- --version-is=s
-
Only return records where the 'version' field equals specified value.
- --version-isnt=s
-
Only return records where the 'version' field does not equal specified value.
- --version-max=s
-
Only return records where the 'version' field is less than or equal to specified value.
- --version-min=s
-
Only return records where the 'version' field is greater than or equal to specified value.
- --version-not-contains=s
-
Only return records where the 'version' field does not contain specified text.
- --version-not-in-json=s
-
Only return records where the 'version' field is not in the specified values (JSON-encoded).
See
--version-not-in
. - --version-not-in=s@
-
Only return records where the 'version' field is not in the specified values.
Can be specified multiple times.
- --version-xmax=s
-
Only return records where the 'version' field is less than specified value.
- --version-xmin=s
-
Only return records where the 'version' field is greater than specified value.
Filtering options
Ordering options
- --random
-
Return records in random order.
- --sort=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.
Output options
- --format=s
-
Choose output format, e.g. json, text.
Default value:
undef
- --json
-
Set output format to json.
- --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]
Paging options
- --result-limit=i
-
Only return a certain number of records.
- --result-start=i
-
Only return starting from the n'th record.
Default value:
1
Other options
COMPLETION
This script has shell tab completion capability with support for several shells.
bash
To activate bash completion for this script, put:
complete -C list-android-releases list-android-releases
in your bash startup (e.g. ~/.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 shcompgen which allows you to activate completion scripts for several kinds of scripts on multiple shells. Some CPAN distributions (those that are built with Dist::Zilla::Plugin::GenShellCompletion) will even automatically enable shell completion for their included scripts (using shcompgen
) at installation time, so you can immadiately have tab completion.
tcsh
To activate tcsh completion for this script, put:
complete list-android-releases 'p/*/`list-android-releases`/'
in your tcsh startup (e.g. ~/.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 shcompgen
(see above).
other shells
For fish and zsh, install shcompgen
as described above.
ENVIRONMENT
LIST_ANDROID_RELEASES_OPT => str
Specify additional command-line options
CONFIGURATION FILE
This script can read configuration file, which by default is searched at ~/.config/list-android-releases.conf
, ~/list-android-releases.conf
or /etc/list-android-releases.conf
(can be changed by specifying --config-path
). All found files will be read and merged.
To disable searching for configuration files, pass --no-config
.
Configuration file is in the format of IOD, which is basically INI with some extra features.
You can put multiple profiles in a single file by using section names like [profile=SOMENAME]
. Those sections will only be read if you specify the matching --config-profile SOMENAME
.
List of available configuration parameters:
api_level (see --api-level)
api_level.in (see --api-level-in)
api_level.is (see --api-level-is)
api_level.isnt (see --api-level-isnt)
api_level.max (see --api-level-max)
api_level.min (see --api-level-min)
api_level.not_in (see --api-level-not-in)
api_level.xmax (see --api-level-xmax)
api_level.xmin (see --api-level-xmin)
code_name (see --code-name)
code_name.contains (see --code-name-contains)
code_name.in (see --code-name-in)
code_name.is (see --code-name-is)
code_name.isnt (see --code-name-isnt)
code_name.max (see --code-name-max)
code_name.min (see --code-name-min)
code_name.not_contains (see --code-name-not-contains)
code_name.not_in (see --code-name-not-in)
code_name.xmax (see --code-name-xmax)
code_name.xmin (see --code-name-xmin)
detail (see --detail)
fields (see --field)
format (see --format)
naked_res (see --naked-res)
query (see --query)
random (see --random)
reldate (see --reldate)
reldate.in (see --reldate-in)
reldate.is (see --reldate-is)
reldate.isnt (see --reldate-isnt)
reldate.max (see --reldate-max)
reldate.min (see --reldate-min)
reldate.not_in (see --reldate-not-in)
reldate.xmax (see --reldate-xmax)
reldate.xmin (see --reldate-xmin)
result_limit (see --result-limit)
result_start (see --result-start)
sort (see --sort)
version (see --version-arg)
version.contains (see --version-contains)
version.in (see --version-in)
version.is (see --version-is)
version.isnt (see --version-isnt)
version.max (see --version-max)
version.min (see --version-min)
version.not_contains (see --version-not-contains)
version.not_in (see --version-not-in)
version.xmax (see --version-xmax)
version.xmin (see --version-xmin)
with_field_names (see --with-field-names)
FILES
~/.config/list-android-releases.conf
~/list-android-releases.conf
/etc/list-android-releases.conf
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/App-ListAndroidReleases.
SOURCE
Source repository is at https://github.com/perlancar/perl-App-ListAndroidReleases.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-ListAndroidReleases
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.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 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.