What’s new?
The viash ns command’s –namespace argument has been renamed to –query_namespace, introduction of custom DSL for overriding config properties at runtime.
Full changelog
NEW FEATURES
Config modding: A custom viash DSL allows overriding viash config properties at runtime. See online documentation for more information. Example:
viash ns test \ -p docker \ -c '.functionality.version := "1.0.0"' \ -c '.platforms[.type == "docker"].target_registry := "my.docker-registry.com"' \ -c '.platforms[.type == "docker"].setup_strategy := "pull"' \ -lviash build: The image can be pushed with--push. The same can be done by passing---pushto a viash executable.viash nscan query the name, namespace, or both, with the following arguments:--query_namespaceor-n: filter the namespace with a regex.--query_name: filter the name with a regex.--queryor-q: filter the namespace/name with a regex.
Added the
project_build,project_clean,project_pushandproject_testcomponents to this repository.Added a field
.functionality.infoof typeMap[String, String]in order to be able to specify custom annotations to the component.
BREAKING CHANGES
viash ns: Argument--namespacehas been renamed to--query_namespace.viash ns: Argument--namespacedoes not implicitly change the namespace of the functionality anymore. You can use the command DSL to reproduce this effect; for example:-c '.functionality.namespace := "foo"'.Docker&NXF: Attributeversionis deprecated. Instead, the default value will be.functionality.version, which can be overridden by using thetagattribute.NXF: When running a viash component as a Nextflow module on its own, you now need to specify all input files on the command line. For instance, if--inputand--referenceare input file arguments, you need to start the process by runningnextflow run main.nf --input <...> --reference <...> <other arguments>. Previously only the input file needed to be specified.Docker&NXF: Default separator between namespace and image name has been changed from"/"to"_".
MINOR CHANGES
Docker&NXF: Parsing of image attributes for bothDockerandNextflowplatforms are better aligned. You can define an image by specifying either of the following:{ image: 'ubuntu:latest' }{ image: ubuntu, tag: latest }
Docker&NXF: Allow changing the separator between a namespace and the image name.
NEXTFLOW REFACTORING
The generation of Nextflow modules has been refactored thoroughly.
NXF: The implicitly generated names for output files/directories have been improved leading to less clashes.NXF: Allow for multiple output files/directories from a module while keeping compatibility for single output. Please refer to the docs.NXF: Allow for zero input files by means of passing an empty list[]in the tripletNXF: Remove requirement forfunction_type: todirNXF: It is now possible to not only specifylabel: ...for a nextflow platform but alsolabels: [ ...].
BUG FIXES
Allow quotes in functionality descriptions.
NXF: Providing adefault: ...value for output file arguments is no longer necessary.