coenm / RepoM

👨‍💻 A minimal-conf git repository hub for Windows . This project is a fork of RepoZ
MIT License
6 stars 1 forks source link

Enums in RepositoryActions #87

Open coenm opened 3 months ago

coenm commented 3 months ago

test + improve enums in repository actions in combination with scriban templating.

coenm commented 3 months ago

search for // GitHub issue: https://github.com/coenm/RepoM/issues/87 in code.

coenm commented 3 months ago
enum Gender 
{
  Male,
  Female
}
class DummyRepositoryAction 
{

  // current
  Gender Gender {get;set;}

  // feature:
  // this way, you can set enum using scriban template
  // gender : "{{ condional   ...   'male'  }}"
  ScribanEnum<Gender> Gender {get; set;}

}