-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.kind/usabilityUsability of generated code, ergonomics.Usability of generated code, ergonomics.status/needs-designNeeds further discussion and a concrete proposal.Needs further discussion and a concrete proposal.
Milestone
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.
Metadata
Metadata
Assignees
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.kind/usabilityUsability of generated code, ergonomics.Usability of generated code, ergonomics.status/needs-designNeeds further discussion and a concrete proposal.Needs further discussion and a concrete proposal.