Skip to content

String, number outputs using evalFrom #125

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

Closed
mr-c opened this issue Nov 1, 2018 · 0 comments · Fixed by #156
Closed

String, number outputs using evalFrom #125

mr-c opened this issue Nov 1, 2018 · 0 comments · Fixed by #156
Labels
for miscellaneous page things to be added to a _extras/miscellaneous page

Comments

@mr-c
Copy link
Member

mr-c commented Nov 1, 2018

cwlVersion: v1.0  # or v1.1
class: CommandLineTool
requirements:
  InlineJavascriptRequirement: {}

baseCommand: [ echo, "42" ]

inputs: []

stdout: my_number.txt

outputs:
  my_number:
    type: int
    outputBinding:
       glob: my_number.txt
       loadContents: True
       outputEval: $(parselnt(self[0].contents))

  my_number_as_string:
    type: string
    outputBinding:
       glob: my_number.txt
       loadContents: True
       outputEval: $(self[0].contents)
@tobyhodges tobyhodges added the for miscellaneous page things to be added to a _extras/miscellaneous page label Jul 27, 2019
@mr-c mr-c closed this as completed in #156 Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for miscellaneous page things to be added to a _extras/miscellaneous page
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants