viash-io / viash

script + metadata = standalone component
https://viash.io
GNU General Public License v3.0
36 stars 2 forks source link

[FEATURE] Support dependency sugar syntax in viash run #695

Open rcannood opened 2 months ago

rcannood commented 2 months ago

Feature summary

Support dependency sugar syntax during viash run

Feature description

It'd be really useful if we could allow users to run a component from a different repository by using the dependency/repository sugar syntax. Something like:

viash run github://openpipelines-bio/openpipeline:0.3.0:mynamespace/mycomponent

The exact syntax be discussed, of course. Maybe something simpler might be:

viash run mynamespace/mycomponent --repository github://openpipelines-bio/openpipeline:0.3.0

This would allow something like this:

viash run mynamespace/mycomponent --repository local

to also work, which would run but not build a component from the current project.

Why is this feature beneficial?

Being able to run a component from a different repository would be useful but is not always trivial, since a component can have resources.

Alternatives considered

No response

Possible solution

No response

Confirmation