« blib/lib/App/NDTools/NDProc/Module/Patch.pm
↑ Summary
blib/lib/App/NDTools/NDProc/Module/JsonMergePatch.pm »
| 1 | package App::NDTools; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | App::NDTools - Command line tools for nested structures | ||
| 9 | |||
| 10 | =begin html | ||
| 11 | |||
| 12 | <a href="https://travis-ci.org/mr-mixas/NDTools"><img src="https://travis-ci.org/mr-mixas/NDTools.svg?branch=master" alt="CI"></a> | ||
| 13 | <a href='https://coveralls.io/github/mr-mixas/NDTools?branch=master'><img src='https://coveralls.io/repos/github/mr-mixas/NDTools/badge.svg?branch=master' alt='Coverage Status'/></a> | ||
| 14 | <a href="https://badge.fury.io/pl/App-NDTools"><img src="https://badge.fury.io/pl/App-NDTools.svg" alt="CPAN version"></a> | ||
| 15 | |||
| 16 | =end html | ||
| 17 | |||
| 18 | =head1 VERSION | ||
| 19 | |||
| 20 | Version 0.6.3 | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | our $VERSION = "0.6.3"; | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | Diff, patch, process, query JSON and YAML with ease. | ||
| 29 | |||
| 30 | =head1 TOOLS | ||
| 31 | |||
| 32 | =over 4 | ||
| 33 | |||
| 34 | =item B<L<nddiff>> | ||
| 35 | |||
| 36 | Human friendly and machine readable diffs. | ||
| 37 | |||
| 38 | =item B<L<ndpatch>> | ||
| 39 | |||
| 40 | Apply diff to the structure. | ||
| 41 | |||
| 42 | =item B<L<ndproc>> | ||
| 43 | |||
| 44 | Process structure using rules and modules. | ||
| 45 | |||
| 46 | Available modules: | ||
| 47 | |||
| 48 | Insert Insert value into structure | ||
| 49 | JsonMergePatch Apply JSON Merge Patch (rfc7396) patches | ||
| 50 | JsonPatch Apply JSON Patch (rfc6902) patches | ||
| 51 | Merge Merge structures according provided rules | ||
| 52 | Patch Apply nested diff to the structure | ||
| 53 | Pipe Modify structure using external process | ||
| 54 | Remove Remove specified parts from structure | ||
| 55 | |||
| 56 | =item B<L<ndquery>> | ||
| 57 | |||
| 58 | Examine structure and dump it's parts. | ||
| 59 | |||
| 60 | =back | ||
| 61 | |||
| 62 | =head1 INSTALL | ||
| 63 | |||
| 64 | From CPAN: | ||
| 65 | |||
| 66 | cpanm App::NDTools | ||
| 67 | |||
| 68 | Build deb package: | ||
| 69 | |||
| 70 | git clone https://github.com/mr-mixas/NDTools.git | ||
| 71 | cd NDTools | ||
| 72 | DEBUILD_OPTS="--no-lintian -uc -us -b" make -C dist deb | ||
| 73 | |||
| 74 | Use without installation: | ||
| 75 | |||
| 76 | git clone https://github.com/mr-mixas/NDTools.git | ||
| 77 | cd NDTools | ||
| 78 | source ./SOURCEME # install depends to the current directory and set ENV | ||
| 79 | |||
| 80 | =head1 LIMITATIONS | ||
| 81 | |||
| 82 | L<YAML::XS> should be additionally installed for YAML support. L<YAML::XS> | ||
| 83 | C<0.67> or later and L<JSON::PP> required for correct booleans dump; C<1> for | ||
| 84 | true and C<0> for false used for earlier L<YAML::XS> versions. | ||
| 85 | |||
| 86 | =head1 AUTHOR | ||
| 87 | |||
| 88 | Michael Samoglyadov, C<< <mixas at cpan.org> >> | ||
| 89 | |||
| 90 | =head1 BUGS | ||
| 91 | |||
| 92 | Sure, report them using L<https://github.com/mr-mixas/NDTools/issues> | ||
| 93 | |||
| 94 | =head1 SEE ALSO | ||
| 95 | |||
| 96 | L<jq|https://stedolan.github.io/jq/>, | ||
| 97 | L<json-delta|https://json-delta.readthedocs.io/en/latest/> | ||
| 98 | |||
| 99 | L<Struct::Diff>, L<Struct::Path>, L<Struct::Path::PerlStyle> | ||
| 100 | |||
| 101 | =head1 LICENSE AND COPYRIGHT | ||
| 102 | |||
| 103 | Copyright 2016-2019 Michael Samoglyadov | ||
| 104 | |||
| 105 | This program is free software: you can redistribute it and/or modify it under | ||
| 106 | the terms of the GNU General Public License as published by the Free Software | ||
| 107 | Foundation, either version 3 of the License, or (at your option) any later | ||
| 108 | version. | ||
| 109 | |||
| 110 | This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 111 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 112 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| 113 | |||
| 114 | You should have received a copy of the GNU General Public License | ||
| 115 | along with this program. If not, see L<http://www.gnu.org/licenses/>. | ||
| 116 | |||
| 117 | =cut |