白皇集落営農システム変更通知

This commit is contained in:
Akira
2026-02-21 15:29:27 +09:00
parent f9909500e2
commit 6cf66d2806
4 changed files with 370 additions and 0 deletions

View File

@@ -61,6 +61,27 @@ case "${1:-help}" in
fi
api_post "/scripts/create" "$(cat "$2")"
;;
create-flow)
if [ -z "${2:-}" ]; then
echo "Usage: $0 create-flow <json-file>"
exit 1
fi
api_post "/flows/create" "$(cat "$2")"
;;
update-flow)
if [ -z "${2:-}" ] || [ -z "${3:-}" ]; then
echo "Usage: $0 update-flow <path> <json-file>"
exit 1
fi
api_put "/flows/update/$2" "$(cat "$3")"
;;
create-schedule)
if [ -z "${2:-}" ]; then
echo "Usage: $0 create-schedule <json-file>"
exit 1
fi
api_post "/schedules/create" "$(cat "$2")"
;;
run-script)
if [ -z "${2:-}" ]; then
echo "Usage: $0 run-script <path> [json-args]"
@@ -112,6 +133,9 @@ Windmill REST API ヘルパー
get-script <path> - スクリプトの詳細を取得
get-flow <path> - フローの詳細を取得
create-script <file> - JSONファイルからスクリプトを作成
create-flow <file> - JSONファイルからフローを作成
update-flow <path> <file> - フローを更新
create-schedule <file> - JSONファイルからスケジュールを作成
run-script <path> [args] - スクリプトを実行
run-flow <path> [args] - フローを実行
job-status <id> - ジョブのステータスを確認