dev
No long description provided.
Installation
dagger install github.com/vito/dang/mod/dev@a073036d4d773becc28d25e520cae3c804689ed7Entrypoint
Return Type
Dev !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
| githubToken | Secret | - | GitHub token to use for fetching issue/PR comments |
| kagiToken | Secret | - | Kagi API token for doing research. |
Example
dagger -m github.com/vito/dang/mod/dev@a073036d4d773becc28d25e520cae3c804689ed7 call \
func (m *MyModule) Example() *dagger.Dev {
return dag.
Dev()
}@function
def example() -> dagger.Dev:
return (
dag.dev()
)@func()
example(): Dev {
return dag
.dev()
}Types
Dev 🔗
source() 🔗
Return Type
Directory ! Example
dagger -m github.com/vito/dang/mod/dev@a073036d4d773becc28d25e520cae3c804689ed7 call \
sourcefunc (m *MyModule) Example() *dagger.Directory {
return dag.
Dev().
Source()
}@function
def example() -> dagger.Directory:
return (
dag.dev()
.source()
)@func()
example(): Directory {
return dag
.dev()
.source()
}kagiToken() 🔗
Kagi API token for doing research.
Return Type
Secret Example
dagger -m github.com/vito/dang/mod/dev@a073036d4d773becc28d25e520cae3c804689ed7 call \
kagi-tokenfunc (m *MyModule) Example() *dagger.Secret {
return dag.
Dev().
KagiToken()
}@function
def example() -> dagger.Secret:
return (
dag.dev()
.kagi_token()
)@func()
example(): Secret {
return dag
.dev()
.kagiToken()
}githubToken() 🔗
GitHub token to use for fetching issue/PR comments
Return Type
Secret Example
dagger -m github.com/vito/dang/mod/dev@a073036d4d773becc28d25e520cae3c804689ed7 call \
github-tokenfunc (m *MyModule) Example() *dagger.Secret {
return dag.
Dev().
GithubToken()
}@function
def example() -> dagger.Secret:
return (
dag.dev()
.github_token()
)@func()
example(): Secret {
return dag
.dev()
.githubToken()
}withTools() 🔗
Start a coding agent with the provided module.
Return Type
LLM !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tools | Module ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(tools *dagger.Module) *dagger.LLM {
return dag.
Dev().
WithTools(tools)
}@function
def example(tools: dagger.Module) -> dagger.LLM:
return (
dag.dev()
.with_tools(tools)
)@func()
example(tools: Module): LLM {
return dag
.dev()
.withTools(tools)
}git() 🔗
Run a git command and return its output.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/vito/dang/mod/dev@a073036d4d773becc28d25e520cae3c804689ed7 call \
git --args string1 --args string2func (m *MyModule) Example(ctx context.Context, args []string) string {
return dag.
Dev().
Git(ctx, args)
}@function
async def example(args: List[str]) -> str:
return await (
dag.dev()
.git(args)
)@func()
async example(args: string[]): Promise<string> {
return dag
.dev()
.git(args)
}agent() 🔗
Start a coding agent.
Return Type
LLM !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| base | LLM ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(base *dagger.LLM) *dagger.LLM {
return dag.
Dev().
Agent(base)
}@function
def example(base: dagger.LLM) -> dagger.LLM:
return (
dag.dev()
.agent(base)
)@func()
example(base: LLM): LLM {
return dag
.dev()
.agent(base)
}github() 🔗
Run a gh command and return its output.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/vito/dang/mod/dev@a073036d4d773becc28d25e520cae3c804689ed7 call \
github --args string1 --args string2func (m *MyModule) Example(ctx context.Context, args []string) string {
return dag.
Dev().
Github(ctx, args)
}@function
async def example(args: List[str]) -> str:
return await (
dag.dev()
.github(args)
)@func()
async example(args: string[]): Promise<string> {
return dag
.dev()
.github(args)
}