ptouch-label CLIを追加して差込印刷を拡張

コマンド名を機能に合わせて整理し、SVGテンプレート+JSON/YAMLの差込印刷とメディア情報取得を使いやすくする。

Made-with: Cursor
This commit is contained in:
knb
2026-04-16 14:49:08 +09:00
parent 33465c7299
commit 32ab12f661
12 changed files with 412 additions and 260 deletions

View File

@@ -1,9 +1,16 @@
# samples
試験・デモ用のサンプル画像PNG など)を置くディレクトリです。リポジトリに含める場合はライセンス・著作権に注意してください。
試験・デモ用のサンプル画像PNG/SVGや差込印刷データJSON/YAML)を置くディレクトリです。リポジトリに含める場合はライセンス・著作権に注意してください。
例(ドライラン):
```bash
./build/ptouch-print -n -f samples/your.png
```
差込印刷の例Ruby CLI:
```bash
ruby -I ruby/lib ruby/exe/ptouch-label -n --template samples/merge_template.svg --data samples/merge_data.yml
ruby -I ruby/lib ruby/exe/ptouch-label -n --template samples/merge_template.svg --data samples/merge_data.json
```