Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created March 21, 2024 16:48
Show Gist options
  • Save vfarcic/06559b5a21d92efac8b0c2680c42dbef to your computer and use it in GitHub Desktop.
Save vfarcic/06559b5a21d92efac8b0c2680c42dbef to your computer and use it in GitHub Desktop.
####################################################################################
# Is PKL the Ultimate Data Format? Unveiling the Challenger to YAML, JSON, and CUE #
####################################################################################
# Additional Info:
# - Pkl: https://pkl-lang.org
# - Is CUE The Perfect Language For Kubernetes Manifests (Helm Templates Replacement)?: https://youtu.be/m6g0aWggdUQ
# - Is Timoni With CUE a Helm Replacement?: https://youtu.be/bbE1BFCs548
#########
# Setup #
#########
git clone https://github.com/vfarcic/crossplane-sql
cd crossplane-sql
git checkout pkl
# Download `pkl` by following the instructions at https://pkl-lang.org/main/current/pkl-cli/index.html#download.
#################
# Pkl in Action #
#################
cat pkl/aws.pkl
pkl eval pkl/aws.pkl
pkl eval pkl/aws.pkl --format yaml
pkl eval pkl/aws.pkl --format json
cat pkl/aws.pkl
cat pkl/goTemplate.pkl
cat pkl/daprComponents.pkl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment