Skip to content

Instantly share code, notes, and snippets.

@WesleyBatista
Created January 29, 2018 06:21
Show Gist options
  • Save WesleyBatista/c80041faa70e24ad0576a2c592983337 to your computer and use it in GitHub Desktop.
Save WesleyBatista/c80041faa70e24ad0576a2c592983337 to your computer and use it in GitHub Desktop.
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