aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-02-22 10:27:56 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-02-22 10:27:56 -0700
commite2b3d58bdcf717132b5f3ff5769ee273293b9534 (patch)
treec62119fbe58245cb8ddc3ccdcc996c514b6aaa1d
parent9343a90bb25fa9180a61ffb408969a6acc62107f (diff)
downloadconsfigurator-e2b3d58bdcf717132b5f3ff5769ee273293b9534.tar.gz
rename property applied by running a shell command
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--src/package.lisp2
-rw-r--r--src/property/command.lisp6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/package.lisp b/src/package.lisp
index 17453db..c3285cc 100644
--- a/src/package.lisp
+++ b/src/package.lisp
@@ -153,4 +153,4 @@
(defpackage :consfigurator.property.command
(:use #:cl #:consfigurator)
- (:export #:shell-command))
+ (:export #:run))
diff --git a/src/property/command.lisp b/src/property/command.lisp
index 6c6deb7..c97e9fd 100644
--- a/src/property/command.lisp
+++ b/src/property/command.lisp
@@ -17,9 +17,11 @@
(in-package :consfigurator.property.command)
-(defprop shell-command :posix (cmd args &key environment)
+(defprop run :posix (cmd args &key environment)
"A property which can be applied by running a shell command.
-Keyword argument :environment is a plist of environment variables to be set
+(Note that bypassing the shell could only be done within a :lisp property.)
+
+Keyword argument :ENVIRONMENT is a plist of environment variables to be set
when running the command, using env(1)."
(:apply (apply #'run :env environment cmd args)))