Open
Description
Introduce an "init" subcommand for bootstrapping a package.
At the very least, should bootstrap (decision: client vs server, asked by the CLI):
- Package.swift
- a new Hello World-like OpenAPI document (or an existing one can be provided by the user in the command)
- main.swift/Tool.swift with the entry point and basic code to get things working with
swift run
- config file with reasonable defaults
For example: swift-openapi-generator init-package --mode client
would create a new package, with a simple OpenAPI doc, and the generator configured etc. This package would work out of the box with swift run
. Just need two variants: client and server.