31 Commits

Author SHA1 Message Date
Francesco Paolo Severino
7998dd4acc
New simplified rewrite of the Vapor Toolbox (#471)
* 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>
2025-03-17 20:25:05 +00:00
Tim Condon
3e9a23ad47
Update Swift Versions (#456) 2024-05-13 16:59:52 +02:00
Gwynne Raskind
749ec0dd30
Fix Homebrew workflow 2024-03-03 17:04:53 -06:00
Gwynne Raskind
67177b8bec
Fix Homebrew workflow 2024-03-03 16:50:13 -06:00
Gwynne Raskind
5b903e9e4e
Fix Homebrew workflow 2024-03-03 16:48:35 -06:00
Gwynne Raskind
82bce530ec
Fix Homebrew workflow 2024-03-03 16:43:21 -06:00
dependabot[bot]
8a1eaabc69
Bump the dependencies group with 1 update (#438)
Bumps the dependencies group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).

- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-25 11:23:23 +00:00
Gwynne Raskind
d0714fd610
[skip ci] Update dependabot.yml 2023-11-15 08:16:40 -06:00
Gwynne Raskind
2d7e11eff0
Revolutionize homebrew bump workflow (#429)
* Revolutionize homebrew bump workflow
* Use correct commit info for Penny
2023-11-11 18:02:54 -06:00
Gwynne Raskind
9a8f173919
[no ci] Update dependabot.yml 2023-10-09 07:57:57 -05:00
dependabot[bot]
60110a6a4a
Bump the dependencies group with 1 update (#419)
* Bump the dependencies group with 1 update

Bumps the dependencies group with 1 update: [github.com/jpsim/yams](https://github.com/jpsim/Yams).

- [Release notes](https://github.com/jpsim/Yams/releases)
- [Commits](https://github.com/jpsim/Yams/compare/4.0.6...5.0.6)

---
updated-dependencies:
- dependency-name: github.com/jpsim/yams
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add CodeQL run to CI

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gwynne Raskind <gwynne@vapor.codes>
2023-10-09 07:36:31 -05:00
Gwynne Raskind
2e4dfca364
[no ci] Commit an up to date Package.resolved, add Dependabot config, fix a couple minor bits 2023-10-09 05:16:48 -05:00
Gwynne Raskind
eaf58832be
[no ci] Update test.yml 2023-10-09 05:11:13 -05:00
Gwynne Raskind
7dee63c212
[no ci] Delete .github/workflows/projectboard.yml 2023-10-09 05:10:03 -05:00
Gwynne Raskind
339fb04e95
Update test.yml (#417) 2023-08-05 12:32:56 -05:00
Gwynne Raskind
83d35034b1
Switch to using Penny app to get a GH token (#416)
* Switch to using Penny app to get a GH token
* Cleanup CI workflow
* Update projectboard.yml
* Update README.md
* Add CODEOWNERS
2023-07-18 16:38:26 -05:00
Tim Condon
3e11f77707
Update Toolbox for new Templates (#410)
* 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
2023-04-30 02:38:38 +01:00
Tim Condon
42cf3620f8
Update Supported Swift Versions (#395)
* Update to 5.4

* Fix Dockerfile
2022-06-08 10:48:01 +01:00
BennyDB
6e6e0838ed
Add project board workflow (#387) 2022-05-13 14:22:19 +01:00
BennyDB
e553032be8
Add project board workflow (#384)
Co-authored-by: Tim <0xtimc@gmail.com>
2022-05-03 14:41:38 +01:00
Tim Condon
17cda8484c
Fix CI 2022-05-03 12:57:53 +01:00
BennyDB
5ffe48fb40
Add project board workflow (#378) 2022-03-07 14:24:56 +00:00
BennyDB
3526af250d
Bug/update ci Update CI to run with swift 5.5 only (#376)
* 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
2022-02-28 12:14:23 +00:00
Tim Condon
92a23d4587
Add workflow to automatically update Homebrew (#352)
* Add workflow to automatically update Homebrew

* Add new line at end of file
2020-11-20 11:58:54 +00:00
Gwynne Raskind
50832a0ef5
Fix several inconsistencies in template handling of arguments and inputs (#351)
- 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.
2020-11-17 06:08:17 -06:00
Tim Condon
a4a3193e4b
Delete FUNDING.yml
Migrate funding to the file in the central org repo
2020-11-16 10:40:37 +00:00
Tanner
dec76c539e
Support variable arguments in vapor new (#330)
* add flag support to newproj

* updates

* rm resolved

* ignore resolved

* fix integration tests

* fix var name

* test linux new

* updates
2020-07-13 16:39:43 -04:00
Gwynne Raskind
30e007a7b4
Prep for new beta release of toolbox (#324)
* 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
2020-06-15 06:44:42 -05:00
Tim
37784ae05e
We don't need anything from brew now (#311) 2020-03-25 12:25:46 -04:00
Gwynne Raskind
270f65e46f
Add the macOS GH CI config (#309)
* Add the macOS GH CI config
* Add a test target and stub test so the CI will run properly.
2020-03-24 17:38:21 -05:00
Tanner
d62dfab951
update to 5.2 + test ci (#305) 2020-03-04 14:56:23 -05:00