lufo-cli/src/lufo.js
function (isJson, transformer) {
  printHelpOnExit = false;
  return function (value) {
    if (isJson) {
      console.log(JSON.stringify(value, null, 2));
    } else if (typeof transformer === 'function') {
      console.log(transformer(value));
    } else {
      console.log(value);
    }
    if (theUfo) theUfo.disconnect();
  };
}
function (isJson, transformer) {
  printHelpOnExit = false;
  return function (value) {
    if (isJson) {
      console.log(JSON.stringify(value, null, 2));
    } else if (typeof transformer === 'function') {
      console.log(transformer(value));
    } else {
      console.log(value);
    }
    if (theUfo) theUfo.disconnect();
  };
}
function ( isJson , transformer ) { printHelpOnExit = false ; return function ( value ) { if ( isJson ) { console . log ( JSON . stringify ( value , null , 2 ) ) ; } else if ( typeof transformer === 'function' ) { console . log ( transformer ( value ) ) ; } else { console . log ( value ) ; } if ( theUfo ) theUfo . disconnect ( ) ; } ; }
Helper function to reduce boilerplate when running getter commands.
Helper function to reduce boilerplate when running getter commands .