view cat_gitrevision.xml @ 0:9b58e027065a draft

"planemo upload for repository https://gist.github.com/mvdbeek/5635b2941da1419dc7f065254e0c95c2"
author mvdbeek
date Tue, 22 Feb 2022 20:22:48 +0000
parents
children 1db0bda09182
line wrap: on
line source

<tool id="print_gitrevision" name="Print GITREVISION" version="0.1.0" profile="20.01">
    <command detect_errors="exit_code"><![CDATA[
cp '$gitrevision' '$output'
    ]]></command>
    <configfiles>
        <configfile name="gitrevision">#echo open('/GITREVISION').read()</configfile>
    </configfiles>
    <outputs>
        <data name="output" format="txt" label="GITREVISION"/>
    </outputs>
    <!-- If you want to run this test place a file with "my content" into /GITREVISION
    <tests>
        <test>
            <output name="output">
                <assert_contents>
                    <has_text text="my content"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    -->
    <help><![CDATA[
Prints out the contents of /GITREVISION
    ]]></help>
</tool>