-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
beforeText and afterText for summaries
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
plugins/nf-schema/src/main/nextflow/validation/config/SummaryConfig.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package nextflow.validation | ||
|
||
import groovy.util.logging.Slf4j | ||
import groovy.transform.PackageScope | ||
|
||
|
||
/** | ||
* This class allows to model a specific configuration, extracting values from a map and converting | ||
* | ||
* We anotate this class as @PackageScope to restrict the access of their methods only to class in the | ||
* same package | ||
* | ||
* @author : nvnieuwk <[email protected]> | ||
* | ||
*/ | ||
|
||
@Slf4j | ||
@PackageScope | ||
class SummaryConfig { | ||
final public String beforeText | ||
final public String afterText | ||
|
||
SummaryConfig(Map map) { | ||
def config = map ?: Collections.emptyMap() | ||
beforeText = config.beforeText ?: "" | ||
afterText = config.afterText ?: "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters