presentations
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/stuttgart-things/blueprints/presentations@v1.47.0Entrypoint
Return Type
Presentations Example
dagger -m github.com/stuttgart-things/blueprints/presentations@e958dedf7b12a0a545dc69b98528c89e4bc255f2 call \
func (m *MyModule) Example() *dagger.Presentations {
return dag.
Presentations()
}@function
def example() -> dagger.Presentations:
return (
dag.presentations()
)@func()
example(): Presentations {
return dag
.presentations()
}Types
Presentations 🔗
serve() 🔗
Return Type
Service !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| content | Directory ! | - | No description provided |
| name | String | "hugo" | The project name |
| baseUrl | String | "0.0.0.0" | The base url to use |
| port | String | "1313" | The Port to use |
| theme | String | "github.com/joshed-io/reveal-hugo" | The Theme to use |
Example
dagger -m github.com/stuttgart-things/blueprints/presentations@e958dedf7b12a0a545dc69b98528c89e4bc255f2 call \
serve --content DIR_PATHfunc (m *MyModule) Example(content *dagger.Directory) *dagger.Service {
return dag.
Presentations().
Serve(content)
}@function
def example(content: dagger.Directory) -> dagger.Service:
return (
dag.presentations()
.serve(content)
)@func()
example(content: Directory): Service {
return dag
.presentations()
.serve(content)
}init() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| defaultsFile | File | - | No description provided |
| variablesFile | File | - | No description provided |
| variables | String | - | No description provided |
Example
dagger -m github.com/stuttgart-things/blueprints/presentations@e958dedf7b12a0a545dc69b98528c89e4bc255f2 call \
init --name stringfunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
Presentations().
Init(name)
}@function
def example(name: str) -> dagger.Directory:
return (
dag.presentations()
.init(name)
)@func()
example(name: string): Directory {
return dag
.presentations()
.init(name)
}addContent() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | the src directory |
| presentationFile | File | - | contextFile in yaml format |
Example
dagger -m github.com/stuttgart-things/blueprints/presentations@e958dedf7b12a0a545dc69b98528c89e4bc255f2 call \
add-content --src DIR_PATHfunc (m *MyModule) Example(src *dagger.Directory) *dagger.Directory {
return dag.
Presentations().
AddContent(src)
}@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.presentations()
.add_content(src)
)@func()
example(src: Directory): Directory {
return dag
.presentations()
.addContent(src)
}