// Name of the module. module.exports.name = 'example module' // Description of the module module.exports.description = 'An example module to show how it works' // Specify this reporter requires a backup. // The second parameter to func() is now a backup instead of the path to one. module.exports.requiresBackup = true // Should this report be skipped in automated reports? // This is used when the 'all' report type is specified, and all possible reports are generated. // with this set to true, the report WILL NOT run when report type = 'all' module.exports.requiresInteractivity = true // Specify this reporter supports the promises API for allowing chaining of reports. module.exports.usesPromises = true // Specify this only works for iOS 10+ module.exports.supportedVersions = '>=10.0' // Reporting function (for usesPromises = false) module.exports.func = function (program, backup) { // This function will be called with the `commander` program, and the iPhoneBackup instance as arguments // This is deprecated. } // Reporting function (for usesPromises = true) module.exports.func = function (program, backup, resolve, reject) { // This function will be called with the `commander` program, and the iPhoneBackup instance as arguments // It MUST resolve() the final result, or reject() if there's an error } // --- OR --- // You can also provide an array of functions instead of using `module.exports.func`. // These functions *should* be independent ranges to ensure reliable execution module.exports.functions = { '>=10.0': function(program,backup) { // This function would be called for iOS 10+ }, '>=9.0,<10.0': function(program,backup) { // This function would be called for all iOS 9. } }