moleculerjs / moleculer

:rocket: Progressive microservices framework for Node.js
https://moleculer.services/
MIT License
6.14k stars 582 forks source link

[0.15] New "replOptions" broker option #1263

Closed icebob closed 10 months ago

icebob commented 10 months ago

:memo: Description

This PR introduces a new replOptions broker option instead of replCommands and replDelimiter options.

:dart: Relevant issues

It covers #1153

:gem: Type of change

:scroll: Example code

// moleculer.config.js
module.exports = {
    replOptions: {
        delimiter: "mol # ",
        customCommands: [
            {
                command: "hello <name>",            
                action(broker, args) {
                    // ...
                }
            }
        ]
    }
}

:vertical_traffic_light: How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

:checkered_flag: Checklist:

coveralls commented 10 months ago

Pull Request Test Coverage Report for Build 6990432701


Totals Coverage Status
Change from base Build 6990310292: -0.004%
Covered Lines: 7205
Relevant Lines: 7430

đź’› - Coveralls