A reasonable configuration language rcl-lang.org
configuration-language json
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Run new autoformatter on all examples

In the past I did not autoformat them because I was not happy with the
output yet, but now the formatter is good enough that I'm willing to
take this. There are still a few cases where I'm like ... meh, but that
requires human judgement that I think a formatter can never get right,
so I'm willing to stop arguing about this to get a formatter.

Possibly in the future I can add the magic trailing comma like Black has
in Python, to force collections to be tall. That could still be nice.
We can do that in a follow-up.

+6 -15
+3 -6
examples/buckets.rcl
··· 1 1 // See docs/tutorial.md for the origin of this example. 2 2 { 3 3 buckets = [ 4 - let retention_days = { 5 - hourly = 4, 6 - daily = 30, 7 - monthly = 365, 8 - }; 4 + let retention_days = { hourly = 4, daily = 30, monthly = 365 }; 9 5 for database in ["alpha", "bravo"]: 10 - for period, days in retention_days: { 6 + for period, days in retention_days: 7 + { 11 8 name = f"{database}-{period}", 12 9 region = "eu-west", 13 10 lifecycle_policy = { delete_after_seconds = days * 24 * 3600 },
+2 -8
examples/github_actions.rcl
··· 1 1 { 2 2 name = "Build", 3 3 4 - on = { 5 - push = { branches = ["master"] }, 6 - workflow_dispatch = {}, 7 - }, 4 + on = { push = { branches = ["master"] }, workflow_dispatch = {} }, 8 5 9 6 jobs = { 10 7 "Build": { 11 8 runs-on = "ubuntu-22.04", 12 9 steps = [ 13 - { 14 - name = "Checkout", 15 - uses = "actions/checkout@v3.5.3", 16 - }, 10 + { name = "Checkout", uses = "actions/checkout@v3.5.3" }, 17 11 { 18 12 name = "Install Nix", 19 13 uses = "cachix/install-nix-action@v18",
+1 -1
examples/tags.rcl
··· 49 49 tag 50 50 }; 51 51 host: group_tags | device_tags 52 - } 52 + }, 53 53 }