The new Vapor Toolbox

The Toolbox has been rewritten using the best tools in the ecosystem, and it's now more powerful than ever!

blog.vapor.codes/posts/toolbox-rewrite/

The Vapor Toolbox has been rewritten using Swift 6, replacing deprecated subcommands with a focus on the new command for creating Vapor projects from templates. It now uses Hummingbird’s swift-mustache for Mustache templating and Swift Argument Parser instead of ConsoleKit, leveraging custom reflection for dynamic arguments.

New features include support for nested variables in template manifests, a --manifest flag for custom paths, a --verbose flag for detailed output, and an experimental --dump-variables flag for JSON output.

The rewrite maintains compatibility with existing templates but introduces minor flag changes, like -t for --template, justifying a major version bump. Available via Homebrew or source compilation, the Toolbox enhances the Swift ecosystem, with plans for further template enhancements.


Category:

Year: