From d005c17106add8bd9ab07eddc30e9cf9b17de544 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 22 Mar 2024 00:00:03 +0000 Subject: 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. --- ccwl/cwl.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ccwl/cwl.scm') diff --git a/ccwl/cwl.scm b/ccwl/cwl.scm index b4a6025..3479492 100644 --- a/ccwl/cwl.scm +++ b/ccwl/cwl.scm @@ -1,5 +1,5 @@ ;;; ccwl --- Concise Common Workflow Language -;;; Copyright © 2021, 2023 Arun Isaac +;;; Copyright © 2021, 2023–2024 Arun Isaac ;;; ;;; This file is part of ccwl. ;;; @@ -32,11 +32,11 @@ #:use-module (ccwl yaml) #:export (workflow->cwl command->cwl - workflow-or-command->cwl)) + function->cwl)) (define %cwl-version "v1.2") -(define workflow-or-command->cwl +(define function->cwl (match-lambda* (((? workflow? workflow) port) (workflow->cwl workflow port)) -- cgit v1.2.3