ssg
An agent environment for bulding a static site
Installation
dagger install github.com/levlaz/agent-playground/ssg@41a34d3b309194846235ff9850ffc5f1e4ff52e2Entrypoint
Return Type
Ssg Example
dagger -m github.com/levlaz/agent-playground/ssg@41a34d3b309194846235ff9850ffc5f1e4ff52e2 call \
func (m *MyModule) Example() *dagger.Ssg {
return dag.
Ssg()
}@function
def example() -> dagger.Ssg:
return (
dag.ssg()
)@func()
example(): Ssg {
return dag
.ssg()
}Types
Ssg 🔗
container() 🔗
Workspace container state
Return Type
Container ! Example
dagger -m github.com/levlaz/agent-playground/ssg@41a34d3b309194846235ff9850ffc5f1e4ff52e2 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Ssg().
Container()
}@function
def example() -> dagger.Container:
return (
dag.ssg()
.container()
)@func()
example(): Container {
return dag
.ssg()
.container()
}read() 🔗
Read a file
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| path | String ! | - | No description provided |
Example
dagger -m github.com/levlaz/agent-playground/ssg@41a34d3b309194846235ff9850ffc5f1e4ff52e2 call \
read --path stringfunc (m *MyModule) Example(ctx context.Context, path string) string {
return dag.
Ssg().
Read(ctx, path)
}@function
async def example(path: str) -> str:
return await (
dag.ssg()
.read(path)
)@func()
async example(path: string): Promise<string> {
return dag
.ssg()
.read(path)
}write() 🔗
Write a file
Return Type
Ssg !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| path | String ! | - | No description provided |
| content | String ! | - | No description provided |
Example
dagger -m github.com/levlaz/agent-playground/ssg@41a34d3b309194846235ff9850ffc5f1e4ff52e2 call \
write --path string --content stringfunc (m *MyModule) Example(path string, content string) *dagger.Ssg {
return dag.
Ssg().
Write(path, content)
}@function
def example(path: str, content: str) -> dagger.Ssg:
return (
dag.ssg()
.write(path, content)
)@func()
example(path: string, content: string): Ssg {
return dag
.ssg()
.write(path, content)
}