Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
31344c21
Commit
31344c21
authored
Oct 05, 2015
by
Peter van 't Hof
Browse files
Added scala docs
parent
e74cdf5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunction.scala
View file @
31344c21
...
...
@@ -206,6 +206,11 @@ trait BiopetCommandLineFunction extends CommandLineResources { biopetFunction =>
private
[
core
]
var
_outputAsStdout
=
false
def
outputAsStsout
=
_outputAsStdout
/**
* This operator sends stdout to `that` and combine this into 1 command line function
* @param that Function that will read from stdin
* @return BiopetPipe function
*/
def
|
(
that
:
BiopetCommandLineFunction
)
:
BiopetCommandLineFunction
=
{
this
.
_outputAsStdout
=
true
that
.
_inputAsStdin
=
true
...
...
@@ -222,12 +227,22 @@ trait BiopetCommandLineFunction extends CommandLineResources { biopetFunction =>
}
}
/**
* This operator can be used to give a program a file as stdin
* @param file File that will become stdin for this program
* @return It's own class
*/
def
:<:
(
file
:
File
)
:
BiopetCommandLineFunction
=
{
this
.
_inputAsStdin
=
true
this
.
stdinFile
=
Some
(
file
)
this
}
/**
* This operator can be used to give a program a file write it's atdout
* @param file File that will become stdout for this program
* @return It's own class
*/
def
>
(
file
:
File
)
:
BiopetCommandLineFunction
=
{
this
.
_outputAsStdout
=
true
this
.
stdoutFile
=
Some
(
file
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment