text: /********************************************************* {COPYRIGHT-TOP} ***
   * Licensed Materials - Property of IBM
   * 5725-Z22, 5725-Z63, 5725-U33, 5725-Z63
   *
   * (C) Copyright IBM Corporation 2016, 2017
   *
   * All Rights Reserved.
   * US Government Users Restricted Rights - Use, duplication or disclosure
   * restricted by GSA ADP Schedule Contract with IBM Corp.
   ********************************************************** {COPYRIGHT-END} **/
  // Node module: apiconnect-cli-orgs
  
  /*eslint brace-style: 0, max-len: 0*/
  
  var orgs = require('apiconnect-apim-client').organizations;
  var fmt = require('./formatter');
  
  module.exports.orgsGet = orgsGet;
  function orgsGet(name, options) {
    options.name = name;
    return orgs.get(options).then(function(result) {
      fmt.getFormatter(result, options);
    });
  }
  
  module.exports.orgsList = orgsList;
  function orgsList(options) {
    return orgs.list(options).then(function(result) {
      fmt.listFormatter(result, options);
    });
  };
  
  