dang
No long description provided.
Installation
dagger install github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0Entrypoint
Return Type
Test !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dang | Dang ! | - | No description provided |
Example
Function Test.Constructor is not accessible from the dang moduleFunction Test.Constructor is not accessible from the dang moduleFunction Test.Constructor is not accessible from the dang moduleFunction Test.Constructor is not accessible from the dang moduleEntrypoint
Return Type
Dang !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | The source directory for the Dang project. |
Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
func (m *MyModule) Example() *dagger.Dang {
return dag.
Dang()
}@function
def example() -> dagger.Dang:
return (
dag.dang()
)@func()
example(): Dang {
return dag
.dang()
}Types
Test 🔗
list() 🔗
List available tests.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Workspace | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context) string {
return dag.
Dang().
Test().
List(ctx)
}@function
async def example() -> str:
return await (
dag.dang()
.test()
.list()
)@func()
async example(): Promise<string> {
return dag
.dang()
.test()
.list()
}language() 🔗
Run the Dang language tests.
Return Type
Void ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
test \
languagefunc (m *MyModule) Example(ctx context.Context) {
return dag.
Dang().
Test().
Language(ctx)
}@function
async def example() -> None:
return await (
dag.dang()
.test()
.language()
)@func()
async example(): Promise<void> {
return dag
.dang()
.test()
.language()
}lsp() 🔗
Run the Dang LSP tests.
Return Type
Void ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
test \
lspfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Dang().
Test().
Lsp(ctx)
}@function
async def example() -> None:
return await (
dag.dang()
.test()
.lsp()
)@func()
async example(): Promise<void> {
return dag
.dang()
.test()
.lsp()
}treesitter() 🔗
Run the tree-sitter tests.
Return Type
Void ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
test \
treesitterfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Dang().
Test().
Treesitter(ctx)
}@function
async def example() -> None:
return await (
dag.dang()
.test()
.treesitter()
)@func()
async example(): Promise<void> {
return dag
.dang()
.test()
.treesitter()
}run() 🔗
Run go test directly.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] | - | Flags to pass along to go test. |
Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
test \
runfunc (m *MyModule) Example() *dagger.Container {
return dag.
Dang().
Test().
Run()
}@function
def example() -> dagger.Container:
return (
dag.dang()
.test()
.run()
)@func()
example(): Container {
return dag
.dang()
.test()
.run()
}Dang 🔗
source() 🔗
The source directory for the Dang project.
Return Type
Directory ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
sourcefunc (m *MyModule) Example() *dagger.Directory {
return dag.
Dang().
Source()
}@function
def example() -> dagger.Directory:
return (
dag.dang()
.source()
)@func()
example(): Directory {
return dag
.dang()
.source()
}generated() 🔗
Base with ./hack/generate ran.
Return Type
Container ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
generatedfunc (m *MyModule) Example() *dagger.Container {
return dag.
Dang().
Generated()
}@function
def example() -> dagger.Container:
return (
dag.dang()
.generated()
)@func()
example(): Container {
return dag
.dang()
.generated()
}build() 🔗
Build the Dang binary to ./bin/dang.
Return Type
Changeset ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
buildfunc (m *MyModule) Example() *dagger.Changeset {
return dag.
Dang().
Build()
}@function
def example() -> dagger.Changeset:
return (
dag.dang()
.build()
)@func()
example(): Changeset {
return dag
.dang()
.build()
}generate() 🔗
Runs all code generation procedures, e.g. go generate, tree-sitter generate.
Return Type
Changeset ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
generatefunc (m *MyModule) Example() *dagger.Changeset {
return dag.
Dang().
Generate()
}@function
def example() -> dagger.Changeset:
return (
dag.dang()
.generate()
)@func()
example(): Changeset {
return dag
.dang()
.generate()
}tidy() 🔗
Run go mod tidy for each Go module in the repo.
Return Type
Changeset ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
tidyfunc (m *MyModule) Example() *dagger.Changeset {
return dag.
Dang().
Tidy()
}@function
def example() -> dagger.Changeset:
return (
dag.dang()
.tidy()
)@func()
example(): Changeset {
return dag
.dang()
.tidy()
}treesitterUpdate() 🔗
Update the tree-sitter test corpus.
Return Type
Changeset ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
treesitter-updatefunc (m *MyModule) Example() *dagger.Changeset {
return dag.
Dang().
TreesitterUpdate()
}@function
def example() -> dagger.Changeset:
return (
dag.dang()
.treesitter_update()
)@func()
example(): Changeset {
return dag
.dang()
.treesitterUpdate()
}binary() 🔗
Return a compiled Dang binary.
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| race | Boolean | - | No description provided |
Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
binaryfunc (m *MyModule) Example() *dagger.File {
return dag.
Dang().
Binary()
}@function
def example() -> dagger.File:
return (
dag.dang()
.binary()
)@func()
example(): File {
return dag
.dang()
.binary()
}dang() 🔗
Build and run a dang command.
Example usage:
# Run a Dang script dang script.dang
# Run all .dang files in a directory as a module dang ./my-module
# Start interactive REPL dang
# Run with debug logging enabled dang –debug script.dang dang -d ./my-module
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
dang --args string1 --args string2func (m *MyModule) Example(ctx context.Context, args []string) {
return dag.
Dang().
Dang(ctx, args)
}@function
async def example(args: List[str]) -> None:
return await (
dag.dang()
.dang(args)
)@func()
async example(args: string[]): Promise<void> {
return dag
.dang()
.dang(args)
}coder() 🔗
Start a Dang coding agent.
Return Type
LLM ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
coderfunc (m *MyModule) Example() *dagger.LLM {
return dag.
Dang().
Coder()
}@function
def example() -> dagger.LLM:
return (
dag.dang()
.coder()
)@func()
example(): LLM {
return dag
.dang()
.coder()
}testUpdate() 🔗
Update the Golden-style test specimens, treating the current output as correct.
Return Type
Changeset ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
test-updatefunc (m *MyModule) Example() *dagger.Changeset {
return dag.
Dang().
TestUpdate()
}@function
def example() -> dagger.Changeset:
return (
dag.dang()
.test_update()
)@func()
example(): Changeset {
return dag
.dang()
.testUpdate()
}bumpEditors() 🔗
Bump the pinned Dang version in each editor plugin.
Return Type
Changeset !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repo | GitRepository | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example() *dagger.Changeset {
return dag.
Dang().
BumpEditors()
}@function
def example() -> dagger.Changeset:
return (
dag.dang()
.bump_editors()
)@func()
example(): Changeset {
return dag
.dang()
.bumpEditors()
}nvimDebug() 🔗
Enter a terminal for debugging the Neovim LSP setup.
Return Type
Container ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
nvim-debugfunc (m *MyModule) Example() *dagger.Container {
return dag.
Dang().
NvimDebug()
}@function
def example() -> dagger.Container:
return (
dag.dang()
.nvim_debug()
)@func()
example(): Container {
return dag
.dang()
.nvimDebug()
}test() 🔗
Return Type
Test ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
testfunc (m *MyModule) Example() *dagger.DangTest {
return dag.
Dang().
Test()
}@function
def example() -> dagger.DangTest:
return (
dag.dang()
.test()
)@func()
example(): DangTest {
return dag
.dang()
.test()
}lint() 🔗
Run the linter.
Return Type
Void ! Example
dagger -m github.com/vito/dang@effd498cc02f3c50de28fca27a5ddb98fa95d0d0 call \
lintfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Dang().
Lint(ctx)
}@function
async def example() -> None:
return await (
dag.dang()
.lint()
)@func()
async example(): Promise<void> {
return dag
.dang()
.lint()
}