lib/gcli/cli.js
function instanceIndex(context) {
  for (var i = 0; i < instances.length; i++) {
    var instance = instances[i];
    if (instance.conversionContext === context ||
        instance.executionContext === context) {
      return i;
    }
  }
  return -1;
}
function instanceIndex(context) {
  for (var i = 0; i < instances.length; i++) {
    var instance = instances[i];
    if (instance.conversionContext === context ||
        instance.executionContext === context) {
      return i;
    }
  }
  return -1;
}
function instanceIndex ( context ) { for ( var i = 0 ; i < instances . length ; i ++ ) { var instance = instances [ i ] ; if ( instance . conversionContext === context || instance . executionContext === context ) { return i ; } } return - 1 ; }
An indexOf that looks-up both types of context
An indexOf that looks - up both types of context