#Can i use zenith modules without CLI?

1 messages · Page 1 of 1 (latest)

keen estuary
#

Really dumb question, but i'm struggling to understand the intended use cases. Basically i just want to reuse/import some of the code like supergit module in my own without using "dagger call" and to only launch it once with "dagger run"

low flame
#

hey there! but dagger run also uses the CLI?

#

are you asking if there's a way to use modules outside dagger call? That's not currently possible. IIRC there's an issue to discuss how this would work, but since modules are not officially released, we haven't still started the work on integrating them with the native SDK experience

placid shell
#

Correct, the goal is that you can run a Dagger Function (loaded from a module) from either 1) the CLI, 2) another Dagger Function, or 3) a custom client tool.

What you're talking about (I think) is option 3: calling a function from your own custom tool. As Marcos said, it's not yet implemented, but is planned. See https://github.com/dagger/dagger/issues/5993

GitHub

Right now if you want to call a module the only reasonable ways are from another module or from the CLI. Otherwise you are on your own to load the module and construct graphql queries for it. We ca...

keen estuary
#

Sorry for the fuss