tower-cli
tower-cli copied to clipboard
Match pipelines name exactly
Description
Closes #360
When searching a pipeline by name match the names exactly, not partially.
Guidelines for testing
- Create a pipeline named
HelloWorld - Create a second pipeline named
HelloWorldSecond - When viewing pipelines by name the search matches the exact name and no "Multiple pipelines found" error is thrown.
$> ./tw pipelines view -n HelloWorld -w JaimeInc/Wsp
Pipeline at [JaimeInc / Wsp] workspace:
--------------+--------------------------------------
ID | 30153220095308
Name | HelloOptimization
Description |
Repository | https://github.com/nextflow-io/hello
Compute env. | Org-batch-ce
Labels | owner=jaime
Configuration:
....
- When the name includes
"characters they are escaped (and the search should fail because pipeline names can only contain aplhanumeric, dash and underscore)
$> ./tw pipelines view -n '"Hello"World"' -w JaimeInc/Wsp
ERROR: Unknown pipeline '\"Hello\"Optimization\"' at [JaimeInc / Wsp] workspace