text: 'use strict';
  
  let program = require('commander');
  let Creds = require('./core/credentials.js');
  let ApiProxy = require('./core/apiproxy.js');
  
  //-----------------------------------------------------------------------------
  // validate input
  //-----------------------------------------------------------------------------
  program
      .option('--package-id <value>', 'package identifier')
      .parse(process.argv);
  
  if (!program.packageId) {
      console.error('option "--package-id <value>" argument required');
      process.exit(1);
  }
  
  //-----------------------------------------------------------------------------
  // get the signed api credentials
  //-----------------------------------------------------------------------------
  let _creds = new Creds();
  let _authKey = _creds.getAuthSignature();
  
  //-----------------------------------------------------------------------------
  // send api request
  //-----------------------------------------------------------------------------
  let _apiproxy = new ApiProxy();
  let _path = `/prod/packages/${program.packageId}/tables/`;
  let _payload = JSON.stringify({
  });
  
  //-----------------------------------------------------------------------------
  // print result
  //-----------------------------------------------------------------------------
  _apiproxy.sendApiRequest(_path, 'GET', _payload, _authKey, function(err, data) {
      if (err) {
          console.log(err);
          process.exit(1);
      }
  
      console.log(JSON.stringify(data));
  });
  