view diff.xml @ 1:294d9452c0d4 draft default tip

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/justdiff commit 97f29bbbd0f37d148e653bfcabe3efce1718c37e
author artbio
date Mon, 11 Dec 2023 00:01:55 +0000
parents 9299a59defda
children
line wrap: on
line source

<tool id="justdiff" name="Differences between two files" version="3.10+galaxy0">
  <description></description>
  <requirements>
    <requirement type="package" version="3.10">diffutils</requirement>
  </requirements>


  <stdio>
      <exit_code range="1:" level="fatal" description="Tool exception" />
  </stdio>
  <command detect_errors="exit_code"><![CDATA[
       diff --side-by-side --suppress-common-lines '${input1}' '${input2}' | cat > '$output'
  ]]></command>
  <inputs>
      <param format="txt" name="input1" type="data" label="first file" help="first file" />
      <param format="txt" name="input2" type="data" label="second file" help="second file" />
  </inputs>
  <outputs>
    <data name="output" format="txt" label="diff $input1.name | $input2.name" />
  </outputs>
  <tests>
      <test>
          <param name="input1" value="file1.txt" ftype="txt" />
          <param name="input2" value="file2.txt" ftype="txt" />
          <output name="output" file="diff.txt" ftype="txt"/>
      </test>
  </tests>
  <help>

.. class:: infomark

**What it does**

Just returns the Unix-style **diff** between two files,
using options --side-by-side and --suppress-common-lines, to make easier difference search.
  </help>
</tool>