csharpfritz / TAML

Defining the coolest and simplest markup language delimited ONLY by tabs
MIT License
23 stars 11 forks source link

Add some concrete examples of possible TAML usage #44

Closed csharpfritz closed 3 years ago

csharpfritz commented 3 years ago

Demonstrate a hypothetical use of TAML by converting the following to TAML documents with appropriate documentation accompanying:

londospark commented 3 years ago

I've just tried to do something with a GitHub Workflow YAML file and came across an issue that I have written up in https://github.com/csharpfritz/TAML/issues/26#issuecomment-695839056

londospark commented 3 years ago

I have a simple appsettings.taml here:

Logging
    LogLevel
        Default             Information
        Microsoft           Warning
        Microsoft.Hosting.Lifetime  Information

AllowedHosts    *

The JSON original would be:

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*"
}
londospark commented 3 years ago

Where would it be best for these files to be located and in the instances where a 1:1 mapping is undesirable/not yet possible would it be worth us still having an example and just noting that you would need a specific converter to make it work (until we get schemas done at least)

CodeItQuick commented 3 years ago

As can be seen above, I proposed a spot for those files to live and started a PR on a separate branch for the files. Cfritz was broadcasting and pushing to the repo at the time so its out of sync with master, I'll wait until the end of the stream to fix.

csharpfritz commented 3 years ago

Added Kubernetes and GitHub actions sample docs in the concrete_samples folder