lib/cli/jenkins.js
function feed(cb) {
  return function (args) {
    function resultCb(result) {
      result.forEach(function (article) {
        console.log(article.title);
      });
    }
    function jenkinsCb(jenkins) {
      if (args.job) {
        jenkins.parseJobFeed(args.job, cli.exitCb(null, resultCb));
      } else if (args.view) {
        jenkins.parseViewFeed(args.view, cli.exitCb(null, resultCb));
      } else {
        jenkins.parseFeed(cli.exitCb(null, resultCb));
      }
    }
    cb(args, jenkinsCb);
  };
}
function feed(cb) {
  return function (args) {
    function resultCb(result) {
      result.forEach(function (article) {
        console.log(article.title);
      });
    }
    function jenkinsCb(jenkins) {
      if (args.job) {
        jenkins.parseJobFeed(args.job, cli.exitCb(null, resultCb));
      } else if (args.view) {
        jenkins.parseViewFeed(args.view, cli.exitCb(null, resultCb));
      } else {
        jenkins.parseFeed(cli.exitCb(null, resultCb));
      }
    }
    cb(args, jenkinsCb);
  };
}
function feed ( cb ) { return function ( args ) { function resultCb ( result ) { result . forEach ( function ( article ) { console . log ( article . title ) ; } ) ; } function jenkinsCb ( jenkins ) { if ( args . job ) { jenkins . parseJobFeed ( args . job , cli . exitCb ( null , resultCb ) ) ; } else if ( args . view ) { jenkins . parseViewFeed ( args . view , cli . exitCb ( null , resultCb ) ) ; } else { jenkins . parseFeed ( cli . exitCb ( null , resultCb ) ) ; } } cb ( args , jenkinsCb ) ; } ; }
Get a handler that calls Jenkins API to retrieve feed.
Feed contains articles.

@param {Function} cb: callback for argument handling
@return Jenkins API handler function
Get a handler that calls Jenkins API to retrieve feed . Feed contains articles .