aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorArun Isaac2024-03-22 00:00:03 +0000
committerArun Isaac2024-03-22 00:00:03 +0000
commitd005c17106add8bd9ab07eddc30e9cf9b17de544 (patch)
tree37017e67902656c3bf15b246428a663b9d836670 /scripts
parentcaab675d8fb37fcc6e7e5904879a68364440d92a (diff)
downloadccwl-d005c17106add8bd9ab07eddc30e9cf9b17de544.tar.gz
ccwl-d005c17106add8bd9ab07eddc30e9cf9b17de544.tar.lz
ccwl-d005c17106add8bd9ab07eddc30e9cf9b17de544.zip
scripts: Use unified function terminology.
Call workflows and commands by our unified notion of "function". This makes it more succinct when adding more kinds of functions. * ccwl/cwl.scm (workflow-or-command->cwl): Rename to function->cwl. * ccwl/graphviz.scm (workflow-or-command->dot): Rename to function->dot. * scripts/ccwl (main): Use function->cwl and function->dot.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ccwl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/ccwl b/scripts/ccwl
index 4114cc7..43cf224 100755
--- a/scripts/ccwl
+++ b/scripts/ccwl
@@ -3,7 +3,7 @@
exec guile --no-auto-compile -e main -s "$0" "$@"
!#
;;; ccwl --- Concise Common Workflow Language
-;;; Copyright © 2021–2023 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2021–2024 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of ccwl.
;;;
@@ -112,8 +112,8 @@ Compile SOURCE-FILE.
(set! %load-should-auto-compile #f)
(let ((to (assq-ref args 'to)))
((cond
- ((string=? to "cwl") workflow-or-command->cwl)
- ((string=? to "dot") workflow-or-command->dot))
+ ((string=? to "cwl") function->cwl)
+ ((string=? to "dot") function->dot))
(guard (exception
;; Handle syntax violation exceptions by reporting
;; them and exiting.