lib/post.js
function post(argv, callback) {
  if (!argv[2]) {
    console.error("url is required");
    console.error("Usage : post <url> <data>");
    process.exit(-1);
  }
  if (!argv[3]) {
    console.error("data is required");
    console.error("Usage : post <url> <data>");
    process.exit(-1);
  }
  util.post(argv[2], argv[3], function(err, val) {
    if (!err) {
      callback(null, argv[2]);
    } else {
      callback(err);
    }
  });
}
function post(argv, callback) {
  if (!argv[2]) {
    console.error("url is required");
    console.error("Usage : post <url> <data>");
    process.exit(-1);
  }
  if (!argv[3]) {
    console.error("data is required");
    console.error("Usage : post <url> <data>");
    process.exit(-1);
  }
  util.post(argv[2], argv[3], function(err, val) {
    if (!err) {
      callback(null, argv[2]);
    } else {
      callback(err);
    }
  });
}
function post ( argv , callback ) { if ( ! argv [ 2 ] ) { console . error ( "url is required" ) ; console . error ( "Usage : post <url> <data>" ) ; process . exit ( - 1 ) ; } if ( ! argv [ 3 ] ) { console . error ( "data is required" ) ; console . error ( "Usage : post <url> <data>" ) ; process . exit ( - 1 ) ; } util . post ( argv [ 2 ] , argv [ 3 ] , function ( err , val ) { if ( ! err ) { callback ( null , argv [ 2 ] ) ; } else { callback ( err ) ; } } ) ; }
post gets list of files for a given container

@param {String} argv[2] url
@param {String} argv[3] data
@callback {bin~cb} callback
post gets list of files for a given container