You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create an app template that can be optionally compatible with Serverpod & Dart Frog.
I'd originally created with without server support, then added Serverpod support via a boolean. Now, I'd like to additionaly add optional support for Dart Frog, but it shouldn't be possible to create an app supporting both Serverpod and Dart Frog. Therefore, I'd like to convert it my boolean to an enum.
However, there does not appear to be (at least documented) support for switch-cases in mason.
Requirements
Allow switch-casing (or equivalent) over enums in mason
Additional Context
n/a?
The text was updated successfully, but these errors were encountered:
Mason's brick.yaml supports enum types
Here is an example from the favorite color example:
name: favorite_colordescription: A new brick created with the Mason CLI.version: 0.1.0+1environment:
mason: ">=0.1.0-dev <0.1.0"vars:
color:
type: enumdescription: Your favorite colordefault: greenprompt: What is your favorite color?values:
- red
- green
- blue
Description
I'm trying to create an app template that can be optionally compatible with Serverpod & Dart Frog.
I'd originally created with without server support, then added Serverpod support via a boolean. Now, I'd like to additionaly add optional support for Dart Frog, but it shouldn't be possible to create an app supporting both Serverpod and Dart Frog. Therefore, I'd like to convert it my boolean to an enum.
However, there does not appear to be (at least documented) support for switch-cases in mason.
Requirements
Additional Context
n/a?
The text was updated successfully, but these errors were encountered: