src/Core/Loaders/CommandLoader.js
/**
     * Remove a command from the module and the global cache.
     *
     * @param {String} fullLabel - Full command label
     * @returns {Boolean} True if successful / Error otherwise
     * @memberof CommandLoader
     */
Remove a command from the module and the global cache.
@param {String} fullLabel - Full command label
@returns {Boolean} True if successful / Error otherwise
@memberof CommandLoader
Remove a command from the module and the global cache . @param { String } fullLabel - Full command label @returns { Boolean } True if successful / Error otherwise @memberof CommandLoader
unregisterCommand(fullLabel) {
        const command = this._module.getCommand(fullLabel);
        if (!command) {
            throw new AxonError(`Command: ${fullLabel} not registered!`, 'COMMAND-LOADER', this._module.label);
        }
        if (command.parentCommand) {
            this.unregisterSubCommand(command.parentCommand, command);
        } else {
            this.axon.commandRegistry.unregister(command.label, command);
        }
        return true;
    }
unregisterCommand ( fullLabel ) { const command = this . _module . getCommand ( fullLabel ) ; if ( ! command ) { throw new AxonError ( ` ${ fullLabel } ` , 'COMMAND-LOADER' , this . _module . label ) ; } if ( command . parentCommand ) { this . unregisterSubCommand ( command . parentCommand , command ) ; } else { this . axon . commandRegistry . unregister ( command . label , command ) ; } return true ; }
Remove a command from the module and the global cache.
Remove a command from the module and the global cache .
/* Unregister command */