Simplify example

This commit is contained in:
Ray Miller 2025-07-06 14:43:14 +01:00
parent e9eb8681e4
commit 93c5cad460
Signed by: ray
GPG key ID: 043F786C4CD681B8

View file

@ -1,12 +1,8 @@
(use-modules (ordo core)
(ordo inventory)
(ordo action remote-cmd)
(ordo logger)
(srfi srfi-26))
(ordo action remote-cmd))
(define uptime (task #:name "uptime" #:action (cut remote-cmd <> "uptime" #:return car)))
;;(setup-logging! #:level 'DEBUG)
;;(load-inventory! "examples/inventory.scm")
;;(execute uptime 'all '())
(execute (task #:name "uptime"
#:action remote-cmd
#:args (list "uptime" #:return car #:check? #t))
'all
#:continue-on-error? #t)