NAME

list-ubuntu-releases - Ubuntu releases

VERSION

This document describes version 0.06 of list-ubuntu-releases (from Perl distribution App-ListUbuntuReleases), released on 2015-09-22.

SYNOPSIS

Usage:

% list-ubuntu-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

--no-env

Do not read environment for default 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 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 kernelver options

--kernelver-contains=s

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

--kernelver-in-json=s

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

See --kernelver-in.

--kernelver-in=s@

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

Can be specified multiple times.

--kernelver-is=s

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

--kernelver-isnt=s

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

--kernelver-max=s

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

--kernelver-min=s

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

--kernelver-not-contains=s

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

--kernelver-not-in-json=s

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

See --kernelver-not-in.

--kernelver-not-in=s@

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

Can be specified multiple times.

--kernelver-xmax=s

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

--kernelver-xmin=s

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

--kernelver=s

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

Filtering for perlver options

--perlver-contains=s

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

--perlver-in-json=s

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

See --perlver-in.

--perlver-in=s@

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

Can be specified multiple times.

--perlver-is=s

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

--perlver-isnt=s

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

--perlver-max=s

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

--perlver-min=s

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

--perlver-not-contains=s

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

--perlver-not-in-json=s

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

See --perlver-not-in.

--perlver-not-in=s@

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

Can be specified multiple times.

--perlver-xmax=s

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

--perlver-xmin=s

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

--perlver=s

Only return records where the 'perlver' 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 supdate_desktop options

--supdate-desktop-in-json=s

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

See --supdate-desktop-in.

--supdate-desktop-in=s@

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

Can be specified multiple times.

--supdate-desktop-is=s

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

--supdate-desktop-isnt=s

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

--supdate-desktop-max=s

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

--supdate-desktop-min=s

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

--supdate-desktop-not-in-json=s

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=s@

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

Can be specified multiple times.

--supdate-desktop-xmax=s

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

--supdate-desktop-xmin=s

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

--supdate-desktop=s

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

Filtering for supdate_server options

--supdate-server-in-json=s

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

See --supdate-server-in.

--supdate-server-in=s@

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

Can be specified multiple times.

--supdate-server-is=s

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

--supdate-server-isnt=s

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

--supdate-server-max=s

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

--supdate-server-min=s

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

--supdate-server-not-in-json=s

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=s@

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

Can be specified multiple times.

--supdate-server-xmax=s

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

--supdate-server-xmin=s

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

--supdate-server=s

Only return records where the 'supdate_server' 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

--query=s, -q

Search.

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

--help, -h, -?

Display help message and exit.

--version, -v

Display program's version and exit.

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-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.

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-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.

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

other shells

For fish and zsh, install shcompgen as described above.

ENVIRONMENT

LIST_UBUNTU_RELEASES_OPT => str

Specify additional command-line options

CONFIGURATION FILE

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.

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:

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)

FILES

~/.config/list-ubuntu-releases.conf

~/list-ubuntu-releases.conf

/etc/list-ubuntu-releases.conf

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-ListUbuntuReleases.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-ListUbuntuReleases.

BUGS

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.

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.