Open markpanganiban opened 7 months ago
Can you give it a try to this:
./tw pipelines view -n '"mark-slurm"' -w 'seqeralabs/testing'
The option to use quotes to do a exact search was added at API level few months ago, not sure if this works at CLI.
It works with quotes! Thanks Jordi.
$ ./tw pipelines view -n '"mark-slurm"' -w 'seqeralabs/testing'
Pipeline at [seqeralabs / testing] workspace:
--------------+-------------------------------------------
ID | 149276434439194
Name | mark-slurm
Description |
Repository | https://github.com/markpanganiban/nf-test
Compute env. | mark-slurm
Labels | No labels found
Shall we clarify this behavior on our tw-cli docs?
I think that the CLI should automatically add the quotes (unless they are already added). This was not done when this was implemented because it was not supported on API side.
I don't see any use case that you want to do a partial string match here.
Agree 👍🏽 Default behaviour should be exact matching.
The pipeline subcommand will return an error when there are multiple matches with the pipeline name.
Example below: