yqh - Helper wrapper around yq.
yqh -f <yaml> -a clear_array --var <var>
yqh -f <yaml> -a clear_hash --var <var>
yqh -f <yaml> -a create_array --var <var> [--vals <vals>]
yqh -f <yaml> -a create_hash --var <var>
yqh -f <yaml> -a dedup_array --var <var>
yqh -f <yaml> -a delete --var <var>
yqh -f <yaml> -a delete_array --var <var>
yqh -f <yaml> -a delete_hash --var <var>
yqh -f <yaml> -a ensure
yqh -f <yaml> -a is_array --var <var>
yqh -f <yaml> -a is_hash --var <var>
yqh -f <yaml> -a is_defined --var <var>
yqh -f <yaml> -a merge_yaml --yaml <yaml> [--mode <mode>]
yqh -f <yaml> -a push_array --var <var> --vals <vals>
yqh -f <yaml> -a set_array --var <var> --vals <vals>
yqh -f <yaml> -a set_hash --var <var> --hash <hash>
yqh -f <yaml> -a set_in_array --var <var> --vals <vals> [--dedup]
yqh -f <yaml> -a yaml_diff --yaml <yaml_file_2>
YAML file to operate on.
Default :: undef
Action to perform.
Variable to set.
Comma seperate list of array values.
Comma seperate list of hash values. Each value is a sub string with key/value seperate by a /=/.
If it should dedup the data for the op.
Default :: 1
Another YAML file to use with like the merge_yaml action or the like.
Merge mode to use.
Default :: deeply
Clears the specified array.
Requires :: --var
Clears the specified hash.
Creates the specified array if it does not exist.
Optional :: --vals
Creates the specified hash if it does not exist.
Deduplicates an array.
Deletes the var without checking the type.
Deletes the specified array.
Deletes the specified hash.
Ensures that the YAML starts with
%YAML $version ---
This is largely for use with stuff used by LibYAML as that sometimes does not play nice when that is missing.
Version 1.1 is used if it is not set.
Returns 0 or 1 based on if it is a array.
Returns 0 or 1 based on if it is a hash.
Returns 0 or 1 based on if it is defined.
Merges the specified YAML into the YAML.
Requires :: --yaml
Optional :: --mode
Pushes a set of items onto an array.
Requires :: --var, --vals
Clears the array and sets it to specified values.
Clears the hash and sets it to specified values.
Requires :: --var, --hash
Make sure a set of values exist in a array and if not add them.
Optional :: --dedup
Diffs the two YAMLs.
To install YAML::yq::Helper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAML::yq::Helper
CPAN shell
perl -MCPAN -e shell install YAML::yq::Helper
For more information on module installation, please visit the detailed CPAN module installation guide.