lib/gcli/system.js
function removeItemsFromFront(system, front) {
  system.commands.getAll().forEach(function(command) {
    if (command.front === front) {
      system.commands.remove(command);
    }
  });
}
function removeItemsFromFront(system, front) {
  system.commands.getAll().forEach(function(command) {
    if (command.front === front) {
      system.commands.remove(command);
    }
  });
}
function removeItemsFromFront ( system , front ) { system . commands . getAll ( ) . forEach ( function ( command ) { if ( command . front === front ) { system . commands . remove ( command ) ; } } ) ; }
Go through all the commands removing any that are associated with the
given front. The method of association is the hack in addLocalFunctions.
Go through all the commands removing any that are associated with the given front . The method of association is the hack in addLocalFunctions .