quarto
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/softwaredevelop/daggerverse/quarto@d5cd2a1e022dac547bbdc64880ead1c4f5df2b40
Entrypoint
Return Type
Quarto !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
image | String | - | Custom image reference in "repository:tag" format to use as a base container. |
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@d5cd2a1e022dac547bbdc64880ead1c4f5df2b40 call \
func (m *myModule) example() *Quarto {
return dag.
Quarto()
}
@function
def example() -> dag.Quarto:
return (
dag.quarto()
)
@func()
example(): Quarto {
return dag
.quarto()
}
Types
Quarto 🔗
Quarto is a module for running Quarto
image() 🔗
Return Type
String !
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@d5cd2a1e022dac547bbdc64880ead1c4f5df2b40 call \
image
func (m *myModule) example(ctx context.Context) string {
return dag.
Quarto().
Image(ctx)
}
@function
async def example() -> str:
return await (
dag.quarto()
.image()
)
@func()
async example(): Promise<string> {
return dag
.quarto()
.image()
}
ctr() 🔗
Return Type
Container !
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@d5cd2a1e022dac547bbdc64880ead1c4f5df2b40 call \
ctr
func (m *myModule) example() *Container {
return dag.
Quarto().
Ctr()
}
@function
def example() -> dagger.Container:
return (
dag.quarto()
.ctr()
)
@func()
example(): Container {
return dag
.quarto()
.ctr()
}
container() 🔗
Container returns the underlying Dagger container
Return Type
Container !
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@d5cd2a1e022dac547bbdc64880ead1c4f5df2b40 call \
container
func (m *myModule) example() *Container {
return dag.
Quarto().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.quarto()
.container()
)
@func()
example(): Container {
return dag
.quarto()
.container()
}
render() 🔗
Render runs the quarto render command
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | source directory. |
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@d5cd2a1e022dac547bbdc64880ead1c4f5df2b40 call \
render --source DIR_PATH
func (m *myModule) example(source *Directory) *Container {
return dag.
Quarto().
Render(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.quarto()
.render(source)
)
@func()
example(source: Directory): Container {
return dag
.quarto()
.render(source)
}
cli() 🔗
Cli runs the quarto cli
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
args | String ! | - | commands to run |
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@d5cd2a1e022dac547bbdc64880ead1c4f5df2b40 call \
cli --args string
func (m *myModule) example(args string) *Container {
return dag.
Quarto().
Cli(args)
}
@function
def example(args: str) -> dagger.Container:
return (
dag.quarto()
.cli(args)
)
@func()
example(args: string): Container {
return dag
.quarto()
.cli(args)
}