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 TypeMethodDescriptionvoidintializeSubCommand(net.sourceforge.argparse4j.inf.Subparsers subparsers) Initialize the arg parser for the Diffy sub commandbooleanprocess(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:
intializeSubCommandin 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:
processin 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
-