This ticket aims to provide the ability to custom default settings for the publishDir directive via the nextflow.config file.
The default settings should be provided using the nextflow.defaults.publishDir configuration scope. For example:
nextflow {
defaults {
publishDir = [mode: 'copy', enabled: false]
}
}
When provided, they should override the built-in default settings and applied when creating a PublishDir instance.