@mocks-server/plugin-inquirer-cli

Mocks server plugin providing an interactive CLI

Usage no npm install needed!

<script type="module">
  import mocksServerPluginInquirerCli from 'https://cdn.skypack.dev/@mocks-server/plugin-inquirer-cli';
</script>

README

Build status Coverage Status Quality Gate

Renovate Last commit Last release

NPM downloads License

Mocks Server"> 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 preinstalled in the main distribution of the Mocks Server project. If you want ot install it by yourself, you can refer to the plugins documentation.

Interactive CLI

Main features

  • Displays current settings. Settings will be refreshed automatically even when changed using other plugins, as the REST API, etc.
  • Allows to change 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

  • cli: <String> Start interactive CLI or not. Default is true. Use false to disable it (--no-cli) when using command line arguments)

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.