Skip to content

[MISC] Allow recursive subcommands#233

Merged
SGSSGene merged 1 commit into
seqan:mainfrom
eseiler:misc/subcommands
Sep 23, 2024
Merged

[MISC] Allow recursive subcommands#233
SGSSGene merged 1 commit into
seqan:mainfrom
eseiler:misc/subcommands

Conversation

@eseiler

@eseiler eseiler commented Feb 8, 2024

Copy link
Copy Markdown
Member

@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Feb 8, 2024
@mr-c

mr-c commented Feb 8, 2024

Copy link
Copy Markdown

What does this do to the CWL export?

@codecov

codecov Bot commented Feb 8, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.12%. Comparing base (7534545) to head (ef1d6f5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #233      +/-   ##
==========================================
+ Coverage   95.10%   95.12%   +0.01%     
==========================================
  Files          18       18              
  Lines        1735     1742       +7     
==========================================
+ Hits         1650     1657       +7     
  Misses         85       85              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eseiler

eseiler commented Feb 8, 2024

Copy link
Copy Markdown
Member Author

What does this do to the CWL export?

CTD looks ok, CWL has a duplicate base command?

Click to open
/path/to/app remote set-url --export-help {ctd,cwl}

<?xml version="1.0" encoding="UTF-8"?>
<tool ctdVersion="1.7" name="git-remote-set-url">
    <executableName><![CDATA[/path/to/app]]></executableName>
    <citations />
    <PARAMETERS version="1.7.0" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/OpenMS/OpenMS/develop/share/OpenMS/SCHEMAS/Param_1_7_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <NODE name="remote" description="" tags="basecommand">
            <NODE name="set-url" description="" tags="basecommand">
                <ITEM name="positional_0" value="" type="string" description="" required="false" advanced="false" />
            </NODE>
        </NODE>
    </PARAMETERS>
</tool>

label: git-remote-set-url
doc: ""
inputs:
  []
outputs:
  []
cwlVersion: v1.2
class: CommandLineTool
baseCommand:
  - app
  - remote
  - set-url
  - set-url

@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Feb 8, 2024
@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Feb 8, 2024
@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Feb 8, 2024
@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Feb 8, 2024
mr-c
mr-c previously requested changes Feb 9, 2024

@mr-c mr-c left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see a test to confirm sane CWL output

@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Feb 9, 2024
@eseiler

eseiler commented Feb 9, 2024

Copy link
Copy Markdown
Member Author

I'd like to see a test to confirm sane CWL output

This'll need deNBI-cibi/tool_description_lib#50 #235

Might be a follow-up PR to add a test.
As far as I can tell, only the baseCommand isn't handled correctly.

@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Sep 19, 2024
@seqan-actions

Copy link
Copy Markdown
Member

Documentation preview available at https://docs.seqan.de/preview/seqan/sharg-parser/233

@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Sep 19, 2024
@eseiler eseiler dismissed mr-c’s stale review September 19, 2024 21:10

CWL test added

@eseiler eseiler marked this pull request as ready for review September 19, 2024 21:10
@seqan seqan deleted a comment from vercel Bot Sep 19, 2024
@seqan-actions seqan-actions added lint [INTERNAL] signals that clang-format ran and removed lint [INTERNAL] signals that clang-format ran labels Sep 20, 2024
@SGSSGene SGSSGene self-requested a review September 23, 2024 11:36

@SGSSGene SGSSGene left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks good to me!

@SGSSGene SGSSGene merged commit ef08477 into seqan:main Sep 23, 2024
@eseiler eseiler deleted the misc/subcommands branch September 23, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants