'use strict';

let cli = require('heroku-cli-util');

module.exports = {
  topic: 'pipelines',
  command: 'list',
  description: 'list pipelines',
  default: true,
  help: 'list pipelines you have access to',
  needsAuth: true,
  run: cli.command(function* (context, heroku) {
    let pipelines = yield heroku.request({
      method: 'GET',
      path: "/pipelines",
      headers: { 'Accept': 'application/vnd.heroku+json; version=3.pipelines' }
    }); // heroku.pipelines().list();
    for (var pipeline in pipelines) {
      cli.log(`${pipelines[pipeline].name}`);
    }
  })
};

@@ -512,24 +512,74 @@
 ipelines) %7B%0A
+      if (pipelines.hasOwnProperty(pipeline)) %7B%0A  
       cli.lo
@@ -612,16 +612,24 @@
 ame%7D%60);%0A
+      %7D%0A
     %7D%0A  

use hasOwnProperty