Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ entry about referencing local script: "including an input of type: File in the script itself"? #385

Open
zoe-translates opened this issue Apr 12, 2023 · 1 comment

Comments

@zoe-translates
Copy link
Contributor

Am I correct in understanding that the intention here was "including the script as an input of type:File in the CWL document itself"?

user_guide/src/faq.md

Lines 115 to 132 in dd897f4

The second method involves including an input of `type: File` in the script itself:
```cwl
class: CommandLineTool
inputs:
my_script:
type: File
inputBinding:
position: 0
# other inputs go here
baseCommand: sh
outputs: []
```

In the context of this entry, "the script" refers to the executable script the user wants to reference in the CWL file. I think the code describes how to make that script "an input of type:File", rather than how to put some CWL-specific data ("input of type:File") in that executable script.

@mr-c
Copy link
Member

mr-c commented Jun 29, 2023

I think the code describes how to make that script "an input of type:File", rather than how to put some CWL-specific data ("input of type:File") in that executable script.

This is correct. Literally embedding a script is also possible, but only recommended for short scripts (maybe one screen of text).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants