スクリプトファースト
普通の Lua ファイルを書いて ptool で実行できます。ランタイムは ptool と p の両方にユーティリティを公開します。
シェルと自動化ワークフローのための Lua スクリプティング。
Lua で小さく鋭い自動化スクリプトを書き、コマンドラインツールのように配布して使えます。
ptool.use("v0.1.0")
local who = ptool.ask("Deploy target?", {
default = "staging",
})
ptool.run("echo", {"deploying", who})まずガイドから始めて、次にモジュール別の Lua API ドキュメントをスクリプトの手引きとして参照してください。
ptool を選ぶ理由
普通の Lua ファイルを書いて ptool で実行できます。ランタイムは ptool と p の両方にユーティリティを公開します。
semver、ファイル、HTTP、SSH、テンプレート、データベース、テキスト処理のヘルパーを、別々のツールを組み合わせずに使えます。
シェルコマンド、引数解析、shebang スクリプト、構造化 API を 1 か所にまとめ、実用的な自動化を組み立てられます。
For AI
ptool publishes the source docs as static files so agents can read the original Markdown directly.
Tell your assistant to fetch the manifest first. It lists every document title, locale, permalink, and raw Markdown URL.
/raw/manifest.jsonEach document also has a stable raw Markdown URL. Use the manifest, or point to a page directly.
Example: read the manifest, select the matching locale and page, then load the raw Markdown instead of scraping the rendered site.
Fetch /raw/manifest.json, find the page for "/docs/intro", then read its rawUrl.