Skip to content

Add default ConfigReader to bootstrap() and package trait#230

Merged
fpseverino merged 5 commits into
vapor:consolekit-5from
fpseverino:bootstrap
Jan 31, 2026
Merged

Add default ConfigReader to bootstrap() and package trait#230
fpseverino merged 5 commits into
vapor:consolekit-5from
fpseverino:bootstrap

Conversation

@fpseverino

@fpseverino fpseverino commented Jan 29, 2026

Copy link
Copy Markdown
Member
  • Add a default ConfigReader (the same from Vapor 5) to bootstrapWithConfigReader()
    • bootstrap(config:) had to change name to bootstrapWithConfigReader() because with the default ConfigReader the compiler can't disambiguate from the original bootstrap()
  • Add a (enabled by default) package trait for the Swift Configuration code
  • Update CI

@0xTim 0xTim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though do we need to put it behind a trait?

@fpseverino

Copy link
Copy Markdown
Member Author

do we need to put it behind a trait?

I tried to keep ConsoleLogger fairly lightweight, so if you don't need Swift Configuration, you can avoid compiling it

@fpseverino fpseverino merged commit b840676 into vapor:consolekit-5 Jan 31, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants