Package com.bazaarvoice.jolt
Class DiffyCliProcessor
java.lang.Object
com.bazaarvoice.jolt.DiffyCliProcessor
- All Implemented Interfaces:
JoltCliProcessor
The JoltCliProcessor for Diffy. See https://github.com/bazaarvoice/jolt/blob/master/json-utils/src/main/java/com/bazaarvoice/jolt/Diffy.java
for documentation on Diffy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
intializeSubCommand
(net.sourceforge.argparse4j.inf.Subparsers subparsers) Initialize the arg parser for the Diffy sub commandboolean
process
(net.sourceforge.argparse4j.inf.Namespace ns) Process the Diffy Subcommand
-
Constructor Details
-
DiffyCliProcessor
public DiffyCliProcessor()
-
-
Method Details
-
intializeSubCommand
public void intializeSubCommand(net.sourceforge.argparse4j.inf.Subparsers subparsers) Initialize the arg parser for the Diffy sub command- Specified by:
intializeSubCommand
in interfaceJoltCliProcessor
- Parameters:
subparsers
- The Subparsers object to attach the new Subparser to
-
process
public boolean process(net.sourceforge.argparse4j.inf.Namespace ns) Process the Diffy Subcommand- Specified by:
process
in interfaceJoltCliProcessor
- Parameters:
ns
- Namespace which contains parsed commandline arguments- Returns:
- true if no differences are found, false if a difference is found or an error occurs
-