bin/swagger-cli.js
function bundle (file, options) {
  api.bundle(file, options)
    .then((bundled) => {
      if (options.outfile) {
        console.log("Created %s from %s", options.outfile, file);
      }
      else {
        // Write the bundled API to stdout
        console.log(bundled);
      }
    })
    .catch(errorHandler);
}
function bundle (file, options) {
  api.bundle(file, options)
    .then((bundled) => {
      if (options.outfile) {
        console.log("Created %s from %s", options.outfile, file);
      }
      else {
        // Write the bundled API to stdout
        console.log(bundled);
      }
    })
    .catch(errorHandler);
}
function bundle ( file , options ) { api . bundle ( file , options ) . then ( ( bundled ) => { if ( options . outfile ) { console . log ( "Created %s from %s" , options . outfile , file ) ; } else { // Write the bundled API to stdout console . log ( bundled ) ; } } ) . catch ( errorHandler ) ; }
Bundles a multi-file API definition

@param {string} file - The path of the file to validate
@param {object} options - Validation options
Bundles a multi - file API definition