Mercurial > repos > bgruening > add_line_to_file
annotate add_line_to_file.xml @ 0:71410ad19057 draft default tip
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
| author | bgruening |
|---|---|
| date | Sun, 01 Nov 2020 19:06:38 +0000 |
| parents | |
| children |
| rev | line source |
|---|---|
|
0
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
1 <tool id="add_line_to_file" name="Add line to file" version="0.1.0"> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
2 <description>writes a line of text at the begining or end of a text file.</description> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
3 <requirements> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
4 <requirement type="package" version="8.25">coreutils</requirement> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
5 </requirements> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
6 <command detect_errors="exit_code"> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
7 <![CDATA[ |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
8 #if $options == 'header': |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
9 echo '$text_input' >> '$outfile' && cat '$infile' >> '$outfile' |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
10 #else |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
11 cat '$infile' >> '$outfile' && echo '$text_input' >> '$outfile' |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
12 #end if |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
13 ]]> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
14 </command> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
15 <inputs> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
16 <param name="text_input" type="text" format="txt" label="text to add"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
17 <param name="infile" type="data" format="txt" label="input file"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
18 <param name="options" type="select" label="Options"> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
19 <option value="header" selected="True">header</option> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
20 <option value="footer">footer</option> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
21 </param> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
22 </inputs> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
23 <outputs> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
24 <data name="outfile" format_source="infile" metadata_source="infile"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
25 </outputs> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
26 <tests> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
27 <test> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
28 <param name="text_input" value="header"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
29 <param name="infile" value="add_line.txt"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
30 <param name="options" value="header"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
31 <output name="outfile" file="add_line_result1.txt"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
32 </test> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
33 <test> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
34 <param name="text_input" value="footer"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
35 <param name="infile" value="add_line.txt"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
36 <param name="options" value="footer"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
37 <output name="outfile" file="add_line_result2.txt"/> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
38 </test> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
39 </tests> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
40 <help> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
41 <![CDATA[ |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
42 **What it does** |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
43 |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
44 This tool adds the input text to the beginning (header) or the end (footer) of the input text file. |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
45 |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
46 ]]> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
47 </help> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
48 <citations> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
49 </citations> |
|
71410ad19057
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/add_line_to_file commit 7947999ae57e82acc8e2c8de15248c2d69e59128"
bgruening
parents:
diff
changeset
|
50 </tool> |
