Created
January 29, 2018 06:21
-
-
Save WesleyBatista/c80041faa70e24ad0576a2c592983337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.salesforce | |
/** | |
* The object to acommodate the main method that will instantiate the `SObject` | |
*/ | |
object ObjectExporter { | |
/** | |
* Get the arguments from the command line, pass to the `SObject` constructor and | |
* call the `dumpNewlineDelimitedJson` method. | |
* | |
* @param args the command line arguments | |
*/ | |
def main(args: Array[String]): Unit = { | |
val objectName = args(1) | |
val outputPath = args(2) | |
val sObject = new SObject(objectName, outputPath) | |
sObject.dumpNewlineDelimitedJson | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment