lib/cli/view.js
function fetchConfig(cb) {
  return function (name, args) {
    function resultCb(result) {
      console.log(result);
    }
    function jenkinsCb(jenkins) {
      jenkins.fetchViewConfig(name, cli.exitCb(null, resultCb));
    }
    cb(args, jenkinsCb);
  };
}
function fetchConfig(cb) {
  return function (name, args) {
    function resultCb(result) {
      console.log(result);
    }
    function jenkinsCb(jenkins) {
      jenkins.fetchViewConfig(name, cli.exitCb(null, resultCb));
    }
    cb(args, jenkinsCb);
  };
}
function fetchConfig ( cb ) { return function ( name , args ) { function resultCb ( result ) { console . log ( result ) ; } function jenkinsCb ( jenkins ) { jenkins . fetchViewConfig ( name , cli . exitCb ( null , resultCb ) ) ; } cb ( args , jenkinsCb ) ; } ; }
Get a handler that calls Jenkins API to fetch a view configuration.
Jenkins view config.xml will be logged when there's no error.

@param {Function} cb: callback for argument handling
@return Jenkins API handler function
Get a handler that calls Jenkins API to fetch a view configuration . Jenkins view config . xml will be logged when there s no error .