From 66a2a887fd5beabbcfc2dcfe46b650eb3b732d12 Mon Sep 17 00:00:00 2001 From: Ray Miller Date: Sun, 6 Jul 2025 15:00:30 +0100 Subject: [PATCH] Update run to work with new syntax --- ordo/cli/run.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ordo/cli/run.scm b/ordo/cli/run.scm index 1b46d6b..8345885 100644 --- a/ordo/cli/run.scm +++ b/ordo/cli/run.scm @@ -16,12 +16,13 @@ this program. If not, see . |# (define-module (ordo cli run) + #:declarative? #f #:use-module (config) #:use-module (config api) #:use-module (ice-9 filesystem) + #:use-module (ordo core) #:use-module (ordo inventory) #:use-module (ordo logger) - #:use-module (ordo playbook) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26) #:export (config handler)) @@ -57,12 +58,12 @@ this program. If not, see . (arguments (list (argument - (name 'playbook) + (name 'workflow) (handler (cut expand-file-name <> #f #t)) + (example "examples/uptime.scm") (test file-exists?)))) - (synopsis "Run a playbook"))) + (synopsis "Run a workflow"))) (define (handler options) - (let ((inventory (load-inventory (option-ref options 'inventory))) - (playbook (load-playbook (option-ref options '(playbook))))) - (run-playbook playbook inventory))) + (load-inventory! (option-ref options 'inventory)) + (load (option-ref options '(workflow))))