| 7 | import { createDevProxyApp } from './server' |
| 8 | |
| 9 | function printUsage() { |
| 10 | console.log(`Usage: |
| 11 | dev-proxy --config <path> [options] |
| 12 | |
| 13 | Options: |
| 14 | --config, -c <path> Path to a dev proxy config file. Defaults to dev-proxy.config.ts. |
| 15 | --env-file <path> Load environment variables before evaluating the config file. |
| 16 | --host <host> Override the configured host. |
| 17 | --port <port> Override the configured port. |
| 18 | --watch Reload config and env file changes. Enabled by default. |
| 19 | --no-watch Disable config and env file reloads. |
| 20 | --help, -h Show this help message.`) |
| 21 | } |
| 22 | |
| 23 | async function flushStandardStreams() { |
| 24 | await Promise.all([ |