osnames - List possible $^O ($OSNAME) values, with description
This document describes version 0.07 of osnames (from Perl distribution App-osnames), released on 2014-12-18.
Usage:
% osnames [options] [q]
Examples:
String search:
% osnames ux
List Unices:
% osnames --tags-has unix --detail
List non-Unices:
% osnames --tags-lacks unix --detail
This list might be useful when coding, e.g. when you want to exclude or include certain OS (families) in your application/test.
* marks required 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 (JSON-encoded).
See --fields.
--fields
Select fields to return (YAML-encoded).
Select fields to return.
Default value:
undef
Can be specified multiple times.
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, ...).
Search.
Only return records where the 'description' field contains specified text.
Only return records where the 'description' field is in the specified values (JSON-encoded).
See --description-in.
--description-in
Only return records where the 'description' field is in the specified values (YAML-encoded).
Only return records where the 'description' field is in the specified values.
Only return records where the 'description' field equals specified value.
Only return records where the 'description' field does not equal specified value.
Only return records where the 'description' field is less than or equal to specified value.
Only return records where the 'description' field is greater than or equal to specified value.
Only return records where the 'description' field does not contain specified text.
Only return records where the 'description' field is not in the specified values (JSON-encoded).
See --description-not-in.
--description-not-in
Only return records where the 'description' field is not in the specified values (YAML-encoded).
Only return records where the 'description' field is not in the specified values.
Only return records where the 'description' field is less than specified value.
Only return records where the 'description' field is greater than specified value.
Only return records where the 'tags' field is an array/list which contains specified value (JSON-encoded).
See --tags-has.
--tags-has
Only return records where the 'tags' field is an array/list which contains specified value (YAML-encoded).
Only return records where the 'tags' field is an array/list which contains specified value.
Only return records where the 'tags' field equals specified value (JSON-encoded).
See --tags-is.
--tags-is
Only return records where the 'tags' field equals specified value (YAML-encoded).
Only return records where the 'tags' field equals specified value.
Only return records where the 'tags' field does not equal specified value (JSON-encoded).
See --tags-isnt.
--tags-isnt
Only return records where the 'tags' field does not equal specified value (YAML-encoded).
Only return records where the 'tags' field does not equal specified value.
See --tags.
--tags
Only return records where the 'tags' field is an array/list which does not contain specified value (JSON-encoded).
See --tags-lacks.
--tags-lacks
Only return records where the 'tags' field is an array/list which does not contain specified value (YAML-encoded).
Only return records where the 'tags' field is an array/list which does not contain specified value.
Only return records where the 'value' field contains specified text.
Only return records where the 'value' field is in the specified values (JSON-encoded).
See --value-in.
--value-in
Only return records where the 'value' field is in the specified values (YAML-encoded).
Only return records where the 'value' field is in the specified values.
Only return records where the 'value' field equals specified value.
Only return records where the 'value' field does not equal specified value.
Only return records where the 'value' field is less than or equal to specified value.
Only return records where the 'value' field is greater than or equal to specified value.
Only return records where the 'value' field does not contain specified text.
Only return records where the 'value' field is not in the specified values (JSON-encoded).
See --value-not-in.
--value-not-in
Only return records where the 'value' field is not in the specified values (YAML-encoded).
Only return records where the 'value' field is not in the specified values.
Only return records where the 'value' field is less than specified value.
Only return records where the 'value' field is greater than specified value.
Set path to configuration file.
Set configuration profile to use.
Pass options to formatter.
Choose output format, e.g. json, text.
Display this help message.
Equivalent to --format=json-pretty.
Do not use any configuration file.
Equivalent to --format=perl.
Show version.
Equivalent to --format=yaml.
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.
/etc/osnames.conf
~/osnames.conf
This script has shell tab completion capability with support for several shells.
To activate bash completion for this script, put:
complete -C osnames osnames
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 osnames 'p/*/`osnames`/'
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.
Please visit the project's homepage at https://metacpan.org/release/App-osnames.
Source repository is at https://github.com/perlancar/perl-App-osnames.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-osnames
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) 2014 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::osnames, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::osnames
CPAN shell
perl -MCPAN -e shell install App::osnames
For more information on module installation, please visit the detailed CPAN module installation guide.