list-ubuntu-releases - Ubuntu releases
This document describes version 0.06 of list-ubuntu-releases (from Perl distribution App-ListUbuntuReleases), released on 2015-09-22.
Usage:
% list-ubuntu-releases [options] [query]
REPLACE ME
* marks required options.
*
Set path to configuration file.
Can be specified multiple times.
Set configuration profile to use.
Do not use any configuration file.
Do not read environment for default options.
Return array of full records instead of just ID fields.
By default, only the key (ID) field is returned per result entry.
Select fields to return.
Select fields to return (JSON-encoded).
See --field.
--field
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, ...).
Only return records where the 'code_name' field contains specified text.
Only return records where the 'code_name' field is in the specified values (JSON-encoded).
See --code-name-in.
--code-name-in
Only return records where the 'code_name' field is in the specified values.
Only return records where the 'code_name' field equals specified value.
Only return records where the 'code_name' field does not equal specified value.
Only return records where the 'code_name' field is less than or equal to specified value.
Only return records where the 'code_name' field is greater than or equal to specified value.
Only return records where the 'code_name' field does not contain specified text.
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
Only return records where the 'code_name' field is not in the specified values.
Only return records where the 'code_name' field is less than specified value.
Only return records where the 'code_name' field is greater than specified value.
Only return records where the 'kernelver' field contains specified text.
Only return records where the 'kernelver' field is in the specified values (JSON-encoded).
See --kernelver-in.
--kernelver-in
Only return records where the 'kernelver' field is in the specified values.
Only return records where the 'kernelver' field equals specified value.
Only return records where the 'kernelver' field does not equal specified value.
Only return records where the 'kernelver' field is less than or equal to specified value.
Only return records where the 'kernelver' field is greater than or equal to specified value.
Only return records where the 'kernelver' field does not contain specified text.
Only return records where the 'kernelver' field is not in the specified values (JSON-encoded).
See --kernelver-not-in.
--kernelver-not-in
Only return records where the 'kernelver' field is not in the specified values.
Only return records where the 'kernelver' field is less than specified value.
Only return records where the 'kernelver' field is greater than specified value.
Only return records where the 'perlver' field contains specified text.
Only return records where the 'perlver' field is in the specified values (JSON-encoded).
See --perlver-in.
--perlver-in
Only return records where the 'perlver' field is in the specified values.
Only return records where the 'perlver' field equals specified value.
Only return records where the 'perlver' field does not equal specified value.
Only return records where the 'perlver' field is less than or equal to specified value.
Only return records where the 'perlver' field is greater than or equal to specified value.
Only return records where the 'perlver' field does not contain specified text.
Only return records where the 'perlver' field is not in the specified values (JSON-encoded).
See --perlver-not-in.
--perlver-not-in
Only return records where the 'perlver' field is not in the specified values.
Only return records where the 'perlver' field is less than specified value.
Only return records where the 'perlver' field is greater than specified value.
Only return records where the 'reldate' field is in the specified values (JSON-encoded).
See --reldate-in.
--reldate-in
Only return records where the 'reldate' field is in the specified values.
Only return records where the 'reldate' field equals specified value.
Only return records where the 'reldate' field does not equal specified value.
Only return records where the 'reldate' field is less than or equal to specified value.
Only return records where the 'reldate' field is greater than or equal to specified value.
Only return records where the 'reldate' field is not in the specified values (JSON-encoded).
See --reldate-not-in.
--reldate-not-in
Only return records where the 'reldate' field is not in the specified values.
Only return records where the 'reldate' field is less than specified value.
Only return records where the 'reldate' field is greater than specified value.
Only return records where the 'supdate_desktop' field is in the specified values (JSON-encoded).
See --supdate-desktop-in.
--supdate-desktop-in
Only return records where the 'supdate_desktop' field is in the specified values.
Only return records where the 'supdate_desktop' field equals specified value.
Only return records where the 'supdate_desktop' field does not equal specified value.
Only return records where the 'supdate_desktop' field is less than or equal to specified value.
Only return records where the 'supdate_desktop' field is greater than or equal to specified value.
Only return records where the 'supdate_desktop' field is not in the specified values (JSON-encoded).
See --supdate-desktop-not-in.
--supdate-desktop-not-in
Only return records where the 'supdate_desktop' field is not in the specified values.
Only return records where the 'supdate_desktop' field is less than specified value.
Only return records where the 'supdate_desktop' field is greater than specified value.
Only return records where the 'supdate_server' field is in the specified values (JSON-encoded).
See --supdate-server-in.
--supdate-server-in
Only return records where the 'supdate_server' field is in the specified values.
Only return records where the 'supdate_server' field equals specified value.
Only return records where the 'supdate_server' field does not equal specified value.
Only return records where the 'supdate_server' field is less than or equal to specified value.
Only return records where the 'supdate_server' field is greater than or equal to specified value.
Only return records where the 'supdate_server' field is not in the specified values (JSON-encoded).
See --supdate-server-not-in.
--supdate-server-not-in
Only return records where the 'supdate_server' field is not in the specified values.
Only return records where the 'supdate_server' field is less than specified value.
Only return records where the 'supdate_server' field is greater than specified value.
Only return records where the 'version' field equals specified value.
Only return records where the 'version' field contains specified text.
Only return records where the 'version' field is in the specified values (JSON-encoded).
See --version-in.
--version-in
Only return records where the 'version' field is in the specified values.
Only return records where the 'version' field does not equal specified value.
Only return records where the 'version' field is less than or equal to specified value.
Only return records where the 'version' field is greater than or equal to specified value.
Only return records where the 'version' field does not contain specified text.
Only return records where the 'version' field is not in the specified values (JSON-encoded).
See --version-not-in.
--version-not-in
Only return records where the 'version' field is not in the specified values.
Only return records where the 'version' field is less than specified value.
Only return records where the 'version' field is greater than specified value.
Search.
Return records in random order.
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.
Choose output format, e.g. json, text.
Default value:
undef
Set output format to json.
When outputing as JSON, strip result envelope.
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]
Only return a certain number of records.
Only return starting from the n'th record.
1
Display help message and exit.
Display program's version and exit.
This script has shell tab completion capability with support for several shells.
To activate bash completion for this script, put:
complete -C list-ubuntu-releases list-ubuntu-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.
~/.bashrc
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.
shcompgen
To activate tcsh completion for this script, put:
complete list-ubuntu-releases 'p/*/`list-ubuntu-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.
~/.tcshrc
It is also recommended to install shcompgen (see above).
For fish and zsh, install shcompgen as described above.
Specify additional command-line options
This script can read configuration file, which by default is searched at ~/.config/list-ubuntu-releases.conf, ~/list-ubuntu-releases.conf or /etc/list-ubuntu-releases.conf (can be changed by specifying --config-path). All found files will be read and merged.
~/.config/list-ubuntu-releases.conf
~/list-ubuntu-releases.conf
/etc/list-ubuntu-releases.conf
--config-path
To disable searching for configuration files, pass --no-config.
--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.
[profile=SOMENAME]
--config-profile SOMENAME
List of available configuration parameters:
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) kernelver (see --kernelver) kernelver.contains (see --kernelver-contains) kernelver.in (see --kernelver-in) kernelver.is (see --kernelver-is) kernelver.isnt (see --kernelver-isnt) kernelver.max (see --kernelver-max) kernelver.min (see --kernelver-min) kernelver.not_contains (see --kernelver-not-contains) kernelver.not_in (see --kernelver-not-in) kernelver.xmax (see --kernelver-xmax) kernelver.xmin (see --kernelver-xmin) naked_res (see --naked-res) perlver (see --perlver) perlver.contains (see --perlver-contains) perlver.in (see --perlver-in) perlver.is (see --perlver-is) perlver.isnt (see --perlver-isnt) perlver.max (see --perlver-max) perlver.min (see --perlver-min) perlver.not_contains (see --perlver-not-contains) perlver.not_in (see --perlver-not-in) perlver.xmax (see --perlver-xmax) perlver.xmin (see --perlver-xmin) 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) supdate_desktop (see --supdate-desktop) supdate_desktop.in (see --supdate-desktop-in) supdate_desktop.is (see --supdate-desktop-is) supdate_desktop.isnt (see --supdate-desktop-isnt) supdate_desktop.max (see --supdate-desktop-max) supdate_desktop.min (see --supdate-desktop-min) supdate_desktop.not_in (see --supdate-desktop-not-in) supdate_desktop.xmax (see --supdate-desktop-xmax) supdate_desktop.xmin (see --supdate-desktop-xmin) supdate_server (see --supdate-server) supdate_server.in (see --supdate-server-in) supdate_server.is (see --supdate-server-is) supdate_server.isnt (see --supdate-server-isnt) supdate_server.max (see --supdate-server-max) supdate_server.min (see --supdate-server-min) supdate_server.not_in (see --supdate-server-not-in) supdate_server.xmax (see --supdate-server-xmax) supdate_server.xmin (see --supdate-server-xmin) 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)
Please visit the project's homepage at https://metacpan.org/release/App-ListUbuntuReleases.
Source repository is at https://github.com/perlancar/perl-App-ListUbuntuReleases.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-ListUbuntuReleases
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.
perlancar <perlancar@cpan.org>
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.
To install App::ListUbuntuReleases, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::ListUbuntuReleases
CPAN shell
perl -MCPAN -e shell install App::ListUbuntuReleases
For more information on module installation, please visit the detailed CPAN module installation guide.