* New simplified rewrite of the Vapor Toolbox
* Fix CI
* Refactor `TemplateRenderer` to dynamically handle Fluent database options
* Align `template` option name to old Toolbox
* Fix command name
* First attempt at dynamic arguments
* Support nested variable conditions for file rendering in `manifest.yml`
* Use Swift 6 language mode
* Remove `Mutex`
* swift format
* Remove redundant calls
* Group mandatory options in help view
* Try using `ubuntu-22.04` in CI
* Try using `latest` Swift in CI
* Add basic tests
* Update Dockerfile
* Update README
* Fix default value to `false` for top level of nested variables
* Fix nested variables bug
* Update README
* First attempt at asking unresolved variables to user
* Add `-n` flag
* Refactor `which` and add more docs
* Dynamically get Toolbox version via Homebrew
* Add test for issue `which` fails on macOS #403
* Remove Ubuntu CodeQL job
* Use new Swift Regex API
* Add unit testing in CI
* Try fixing CI
* Fix CI
* Move entrypoint to `Vapor`
* Improve documentation
* Make option description optional
* Improve documentation
* Add centered prints
* Add `--manifest` flag to specify manifest file path
* Add `--json` flag
* Make the linter happy
* Make it run on Musl
* Rename `--json` to `--dump-variables`
* Improve `which` test
* Update README.md
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
* Update Sources/VaporToolbox/Util/PrintUtilities.swift
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
* Remove custom `TemplateManifest.Variable` equality operator
* Handle UTF-8 encoding error when dumping JSON
* Add short lowercase flag for `--template`
* Remove unused `import`s
* Add again uppercase short flag for `--template`
* Update Package.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update README.md
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update README.md
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update New.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update New.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update New.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update New.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update TemplateManifest.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update TemplateRenderer.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update TemplateRenderer.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update TemplateRenderer.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update PrintUtilities.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update PrintUtilities.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update PrintUtilities.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update PrintUtilities.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update PrintUtilities.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update Vapor.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update PrintUtilities.swift
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Fix typo
* Remove uppercase template flag
* Add Android and Windows to CI
* Remove CodeQL
* Try fixing Android
* Remove MongoDB integration tests
* Enable MySQL Linux integration in CI
* Disable MySQL Linux integration in CI
* Fix typo in README
* Fix bug in first commit
* Try fixing Windows build
* Remove Windows CI
---------
Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
* Update Swift version
* Add deprecation notices to most commands
* Crude check for executable name in manifest
* Fix warning
* File fixes
* Update test.yml Swift version
* Update CI
* Update test to use only 2 swift images
* Changed OS to not be a string
* change workflow to use manual testing
This commit is only for testing purposes
* Add comment to help with readability
* Change to try and run the test github action
* Remove getcidata and use only swift 5.5 for test
* Update to test
* reinstate on push branch action
* Turn json into string
* Create json seperately
* Reformat JSON
* Edit JSON
* Remove {} from JSON string
* Remove on push branch for testing
- Only define `.bool` variables in the context if they have a `true` value (so that `if:` conditions on them in a manifest work properly)
- Correctly recognize --boolvar and --no-boolvar as positive and negative overriding arguments for bool variables.
- Add support for --no-nestedvar negative overriding arguments for the top level of nested variables (e.g. --no-fluent now works).
- Pass the existing prefix to recursive invocations of `ask()` so (in theory) multiply-nested variables would work (mostly just for correctness though).
- Upgrade CI to use the new "centralized environment" stuff. Add testing for the Leaf options.
* Update Dockerfile according to current usage
- Simplify build step (no need to copy Swift libs anymore) and use explicit Ubuntu version for builder and runner
- Update runner image's packages, they're pretty outdated at the time of this writing, also install git so the toolbox can actually do anything
* Update dependency requirements: Require non-RC ConsoleKit and a more modern NIO. Update Package.resolved accordingly.
* Add .txt extension to LICENSE for consistency with common practice
* Copy the CI workflow from vapor/vapor to get much better testing.
* Update README with header image and better CI badge