Skip to content

Introduce an "init" subcommand for bootstrapping a package #448

Open
@czechboy0

Description

@czechboy0

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

No one assigned

    Labels

    area/generatorAffects: plugin, CLI, config file.kind/usabilityUsability of generated code, ergonomics.status/needs-designNeeds further discussion and a concrete proposal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions