moleculerjs / moleculer-repl

REPL module for Moleculer framework
http://moleculer.services/docs/moleculer-repl.html
MIT License
27 stars 25 forks source link

accept replCommands[].autocomplete property for custom command #33

Closed dehypnosis closed 4 years ago

dehypnosis commented 4 years ago

Currently options of custom command accept autocomplete option but command itself doesn't accept autocomplete option. Just one line added.

eg.

replCommands: [
  {
    command: "open <name>",
    description: "Open external service",
    autocomplete: ["apple", "banana"]
  }
]