Skip to content

colinccook/yaml2code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml2code

Generate a .NET Core Solution from yaml using PowerShell yaml2code

How to use

  • Ensure you have at least .NET Core SDK 3.0 installed
  • Pull this repo
  • Run Import-Module powershell-yaml
  • Edit code.yaml if you wish
  • Call yaml2code.ps1
  • Open your fresh new Solution file

Why?

I like writing little Powershell scripts on the side, and I've recently begun looking into yaml which I find quite readable.

I was wondering to what extent a .NET solution could be defined and it's creation automated

The future

I'd really like to add -features per project, which call upon powershell scripts in a Features folder.

For example, I'd like to define something like

projects:
  - name: Application
    features:
    - commands:
      - PurchaseOrderRaisedCommand
      - PurchaseOrderCancelledCommand
      - PurchaseOrderReconcilledCommand
    - queries:
      - AllOpenPurchaseOrdersQuery
      - MismatchedPurchaseOrdersQuery
    - raises:
      - PurchaseOrderPaidEvent
    - listens_for:
      - CustomerCancelledPurchaseOrderEvent

And have the code stub out the commands, interfaces, etc, in the correct structure.

About

Generate a .NET Core Solution from yaml using PowerShell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published