function setCommands( context, commands ) {
	var cmd;
	var i;

	for ( i = 0; i < commands.length; i++ ) {
		cmd = commands[ i ];

		// Set alias...
		if ( hasOwnProp( context, cmd[ 0 ] ) ) {
			debug( 'Skipping command as global context property `'+cmd[0]+'` is already assigned.' );
		} else if ( cmd[ 3 ] ) {
			setReadOnlyAccessor( context, cmd[ 0 ], cmd[ 2 ] );
		} else {
			setReadOnly( context, cmd[ 0 ], cmd[ 2 ] );
		}
		// Set alias shortcut...
		if ( cmd[ 1 ] ) {
			if ( hasOwnProp( context, cmd[ 1 ] ) ) {
				debug( 'Skipping command shortcut as global context property `'+cmd[1]+'` is already assigned.' );
			} else if ( cmd[ 3 ] ) {
				setReadOnlyAccessor( context, cmd[ 1 ], cmd[ 2 ] );
			} else {
				setReadOnly( context, cmd[ 1 ], cmd[ 2 ] );
			}
		}
	}
	return context;
}
Sets commands on a REPL `context` object.

@private
@param {Object} context - context object
@param {ArrayArray} commands - commands
@returns {Object} context object