@mocks-server/plugin-inquirer-cli

4.0.0 • Public • Published

Mocks Server logo

Build Status Coverage Quality Gate Downloads Renovate License


Mocks Server Plugin Inquirer CLI

Mocks Server plugin that provides an interactive CLI that allows to change the server settings while it is running and displays logs and alerts.

Usage

This plugin is pre-installed in the main distribution of the Mocks Server project. If you want to install it by yourself, you can refer to the plugins documentation.

Interactive CLI

Main features

  • Displays current configuration. Settings will be refreshed automatically even when changed using other plugins, as the REST API, etc.
  • Allows to change some settings.
  • Displays current alerts. Alerts include errors when loading mock files, wrong options, etc.
  • Displays logs. Mocks-server logs are displayed in real time.

Options

  • enabled: <boolean> Start the interactive CLI or not. Default is true. Use false to disable it (--no-plugins.inquirerCli.enabled) when using command line arguments)
  • emojis: <boolean> Render emojis or not. Default is true.

Read more about how to set options in Mocks Server here.

Support

Inquirer is used for displaying the interactive CLI. You can consult its OS Terminals support here.

Contributing

Contributors are welcome. Please read the contributing guidelines and code of conduct.

Package Sidebar

Install

npm i @mocks-server/plugin-inquirer-cli

Weekly Downloads

16,543

Version

4.0.0

License

Apache-2.0

Unpacked Size

37.7 kB

Total Files

7

Last publish

Collaborators

  • javierbrea