Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1129859 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jolt?expand=0&rev=1
91 lines
1.9 KiB
Plaintext
91 lines
1.9 KiB
Plaintext
=encoding utf8
|
|
|
|
=head1 NAME
|
|
|
|
jolt - Jolt Command Line Interface
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
jolt [B<-h>]
|
|
|
|
jolt transform [B<-h>] [B<-u>] I<spec> [I<input>]
|
|
|
|
jolt sort [B<-h>] [B<-u>] [I<input>]
|
|
|
|
jolt diffy [B<-h>] [B<-s>] [B<-a>] I<filePath1> [I<filePath2>]
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
A command line interface (CLI) tool for using some of the functionality
|
|
contained in Jolt. Three sub commands are available:
|
|
|
|
=over
|
|
|
|
=item B<transform>
|
|
|
|
given a Jolt transform spec, runs the specified transforms on the input data.
|
|
|
|
=item B<diffy>
|
|
|
|
compare to json documents to see if there are any differences.
|
|
|
|
=item B<sort>
|
|
|
|
sort a json document.
|
|
|
|
=back
|
|
|
|
The Jolt tool has the ability to accept input from standard in:
|
|
|
|
curl -s "http://some.json.api.com/data/you/will/take/our/stupid/format/and/like/it" | jolt transform makeSaneSpec.json | jolt sort
|
|
curl -s "http://some.host.com/stuff/data.json" | jolt diffy moreData.json
|
|
|
|
=head1 OPTIONS
|
|
|
|
=over
|
|
|
|
=item B<-h>, B<--help>
|
|
|
|
Show help message and exit.
|
|
|
|
=item B<-u>
|
|
|
|
Turns off pretty print for the output. Output will be raw json with no
|
|
formatting. (default: false).
|
|
|
|
=item B<-s>
|
|
|
|
Diffy will suppress output and run silently. (default: false).
|
|
|
|
=item I<input>
|
|
|
|
File path to the input JSON that the operation should be performed on. This
|
|
file should contain valid JSON. If this argument is not specified then standard
|
|
input will be used.
|
|
|
|
=item I<spec>
|
|
|
|
File path to Jolt Transform Spec to execute on the input. This file should
|
|
contain valid JSON.
|
|
|
|
=item I<filePath1>
|
|
|
|
File path to feed to Input #1 for the Diffy operation. This file should contain
|
|
valid JSON.
|
|
|
|
=item I<filePath2>
|
|
|
|
File path to feed to Input #2 for the Diffy operation. This file should contain
|
|
valid JSON. If this argument is not specified then standard input will be used.
|
|
|
|
=back
|
|
|
|
=head1 LICENSE
|
|
|
|
Jolt is released under version 2.0 of the L<Apache
|
|
License|https://www.apache.org/licenses/LICENSE-2.0.txt>.
|
|
|
|
=head1 SEE ALSO
|
|
|
|
L<https://github.com/bazaarvoice/jolt>.
|