workspace
No long description provided.
Installation
dagger install github.com/pythoninthegrass/dagger/modules/evals/workspace@3933c8df9f47f6e453078b05d2809507e1c3cb34Entrypoint
Return Type
Workspace !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| buster | String ! | - | A dummy arg just to prevent deduping telemetry across attempts. |
Example
dagger -m github.com/pythoninthegrass/dagger/modules/evals/workspace@3933c8df9f47f6e453078b05d2809507e1c3cb34 call \
--buster stringfunc (m *MyModule) Example(buster string) *dagger.Workspace {
return dag.
Workspace(buster)
}@function
def example(buster: str) -> dagger.Workspace:
return (
dag.workspace(buster)
)@func()
example(buster: string): Workspace {
return dag
.workspace(buster)
}Types
Workspace 🔗
facts() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/pythoninthegrass/dagger/modules/evals/workspace@3933c8df9f47f6e453078b05d2809507e1c3cb34 call \
--buster string factsfunc (m *MyModule) Example(ctx context.Context, buster string) []string {
return dag.
Workspace(buster).
Facts(ctx)
}@function
async def example(buster: str) -> List[str]:
return await (
dag.workspace(buster)
.facts()
)@func()
async example(buster: string): Promise<string[]> {
return dag
.workspace(buster)
.facts()
}record() 🔗
Record an interesting fact.
Return Type
Workspace !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| fact | String ! | - | No description provided |
Example
dagger -m github.com/pythoninthegrass/dagger/modules/evals/workspace@3933c8df9f47f6e453078b05d2809507e1c3cb34 call \
--buster string record --fact stringfunc (m *MyModule) Example(buster string, fact string) *dagger.Workspace {
return dag.
Workspace(buster).
Record(fact)
}@function
def example(buster: str, fact: str) -> dagger.Workspace:
return (
dag.workspace(buster)
.record(fact)
)@func()
example(buster: string, fact: string): Workspace {
return dag
.workspace(buster)
.record(fact)
}nextFact() 🔗
Find the next available fact.
Return Type
String ! Example
dagger -m github.com/pythoninthegrass/dagger/modules/evals/workspace@3933c8df9f47f6e453078b05d2809507e1c3cb34 call \
--buster string next-factfunc (m *MyModule) Example(ctx context.Context, buster string) string {
return dag.
Workspace(buster).
NextFact(ctx)
}@function
async def example(buster: str) -> str:
return await (
dag.workspace(buster)
.next_fact()
)@func()
async example(buster: string): Promise<string> {
return dag
.workspace(buster)
.nextFact()
}