Modernize Convert characters1

This commit is contained in:
Nate Coraor
2025-09-25 17:38:34 +02:00
committed by mvdbeek
parent 7b2cf16c17
commit 0ca869b65a
+16 -13
View File
@@ -1,14 +1,17 @@
<tool id="Convert characters1" name="Convert" version="1.0.0">
<tool id="Convert characters1" name="Convert" version="1.0.1" profile="24.2">
<description>delimiters to TAB</description>
<command interpreter="python">
convert_characters.py
#if $strip
--strip
#end if
#if $condense
--condense
#end if
$input $convert_from $out_file1
<requirements>
<requirement type="package" version="3.13">python</requirement>
</requirements>
<command>
python '$__tool_directory__/convert_characters.py'
#if $strip
--strip
#end if
#if $condense
--condense
#end if
'$input' '$convert_from' '$out_file1'
</command>
<inputs>
<param name="convert_from" type="select" label="Convert all">
@@ -27,12 +30,12 @@ $input $convert_from $out_file1
<param name="strip" type="boolean" checked="true" label="Strip leading and trailing whitespaces" />
<param name="condense" type="boolean" checked="true" label="Condense consecutive delimiters in one TAB" />
</inputs>
<outputs>
<data format="tabular" name="out_file1" />
</outputs>
<stdio>
<exit_code range="1:" level="fatal" />
</stdio>
<outputs>
<data format="tabular" name="out_file1" />
</outputs>
<tests>
<test>
<param name="convert_from" value="s"/>