How interactive mode works with multiple configurations
mainWhen you use a configuration file that contains an array of multiple service configurations, the CLI defaults to an interactive mode (if --interactive is enabled).
Instead of running all tasks at once, the CLI will present a multiselect prompt (using @clack/prompts) allowing you to choose which specific services from the configuration array you want to generate. If you cancel the selection, the process terminates gracefully.
# If your config file looks like this:
[
{ "schemaPath": "api1.yaml", "serversPath": "./api1" },
{ "schemaPath": "api2.yaml", "serversPath": "./api2" }
]
# Running the command will prompt:
# "请选择要生成的 service" (Please select the service to generate)