Dagger
Search

dang

No long description provided.

Installation

dagger install github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c

Entrypoint

Return Type
Dang !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -The source directory for the Dang project.
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c 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

Dang 🔗

source() 🔗

The source directory for the Dang project.

Return Type
Directory !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 source
func (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()
}

tidy() 🔗

Run go mod tidy for each Go module in the repo.

Return Type
Changeset !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 tidy
func (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()
}

testLanguage() 🔗

Run the Dang language tests.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
filterString -Only run tests matching this filter.
rerunString -A unique key to force the tests to re-run.
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 test-language
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Dang().
			TestLanguage(ctx)
}
@function
async def example() -> None:
	return await (
		dag.dang()
		.test_language()
	)
@func()
async example(): Promise<void> {
	return dag
		.dang()
		.testLanguage()
}

testDagger() 🔗

Run the Dagger SDK tests.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
filterString -Only run tests matching this filter.
rerunString -A unique key to force the tests to re-run.
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 test-dagger
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Dang().
			TestDagger(ctx)
}
@function
async def example() -> None:
	return await (
		dag.dang()
		.test_dagger()
	)
@func()
async example(): Promise<void> {
	return dag
		.dang()
		.testDagger()
}

binary() 🔗

Return a compiled Dang binary.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
raceBoolean -No description provided
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 binary
func (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()
}

build() 🔗

Build the Dang binary to ./bin/dang.

Return Type
Changeset !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 build
func (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()
}

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
NameTypeDefault ValueDescription
args[String ! ] !-No description provided
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 dang --args string1 --args string2
func (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)
}

treesitterUpdate() 🔗

Update the tree-sitter test corpus.

Return Type
Changeset !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 treesitter-update
func (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()
}

bump() 🔗

Bump the pinned Dang version in the Dagger SDK and Zed grammar.

Return Type
Changeset !
Arguments
NameTypeDefault ValueDescription
repoGitRepository -No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *MyModule) Example() *dagger.Changeset  {
	return dag.
			Dang().
			Bump()
}
@function
def example() -> dagger.Changeset:
	return (
		dag.dang()
		.bump()
	)
@func()
example(): Changeset {
	return dag
		.dang()
		.bump()
}

testUpdate() 🔗

Update the Golden-style test specimens, treating the current output as correct.

Return Type
Changeset !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 test-update
func (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()
}

lint() 🔗

Run the linter.

Return Type
Void !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 lint
func (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()
}

nvimDebug() 🔗

Enter a terminal for debugging the Neovim LSP setup.

Return Type
Container !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 nvim-debug
func (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()
}

testTreesitter() 🔗

Run the tree-sitter tests.

Return Type
Void !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 test-treesitter
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Dang().
			TestTreesitter(ctx)
}
@function
async def example() -> None:
	return await (
		dag.dang()
		.test_treesitter()
	)
@func()
async example(): Promise<void> {
	return dag
		.dang()
		.testTreesitter()
}

coder() 🔗

Start a Dang coding agent.

Return Type
LLM !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 coder
func (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()
}

bumpDagger() 🔗

Bump the Dagger version across the repo.

Return Type
Changeset !
Arguments
NameTypeDefault ValueDescription
versionString -No description provided
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 bump-dagger
func (m *MyModule) Example() *dagger.Changeset  {
	return dag.
			Dang().
			BumpDagger()
}
@function
def example() -> dagger.Changeset:
	return (
		dag.dang()
		.bump_dagger()
	)
@func()
example(): Changeset {
	return dag
		.dang()
		.bumpDagger()
}

generated() 🔗

Base with ./hack/generate ran.

Return Type
Container !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 generated
func (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()
}

testLsp() 🔗

Run the Dang LSP tests.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
filterString -No description provided
verboseBoolean -No description provided
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 test-lsp
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Dang().
			TestLsp(ctx)
}
@function
async def example() -> None:
	return await (
		dag.dang()
		.test_lsp()
	)
@func()
async example(): Promise<void> {
	return dag
		.dang()
		.testLsp()
}

generate() 🔗

Runs all code generation procedures, e.g. go generate, tree-sitter generate.

Return Type
Changeset !
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 generate
func (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()
}

dev() 🔗

Return Type
Dev !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -No description provided
githubTokenSecret -GitHub token to use for fetching issue/PR comments
kagiTokenSecret -Kagi API token for doing research.
Example
dagger -m github.com/vito/dang@742a25f9919c342f879f2802ab549d7aa304660c call \
 dev
func (m *MyModule) Example() *dagger.Dev  {
	return dag.
			Dang().
			Dev()
}
@function
def example() -> dagger.Dev:
	return (
		dag.dang()
		.dev()
	)
@func()
example(): Dev {
	return dag
		.dang()
		.dev()
}