Skip to content

rkyuragi/apple-pkl-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apple-pkl-sample

公式ドキュメント

pklインストール

curl -L -o pkl https://github.com/apple/pkl/releases/download/0.25.2/pkl-macos-aarch64
chmod +x pkl
./pkl --version

pkl options

  eval              Render pkl module(s)
  repl              Start a REPL session
  server            Run as a server that communicates over standard
                    input/output
  test              Run tests within the given module(s)
  project           Run commands related to projects
  download-package  Download package(s)

VSCode拡張機能

https://github.com/apple/pkl-vscode/releases

vsixファイルをvscodeに追加

サンプル

serverless frameworkのyamlファイルをpklに変換してみたコード

参考にしたyamlファイル:here

./sample/serverlessframework/serverless.yaml

実行

yamlファイルの作成

./pkl eval -f yaml sample/serverlessframework/serverless.pkl -o sample/serverlessframework/serverless-output.yaml

Pklから作成したyamlと元になったyamlを比較して問題ないことを確認

pipenv run python diffyaml.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages