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