Dagger
Search

bun

Installation

dagger install github.com/fluent-ci-templates/bun-pipeline@v0.6.9

Entrypoint

Return Type
Bun
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@3e71b262697e14e66a172423d1c7f7eb3047a7ed call \
func (m *myModule) example() *Bun  {
	return dag.
			Bun()
}
@function
def example() -> dag.Bun:
	return (
		dag.bun()
	)
@func()
example(): Bun {
	return dag
		.bun()
}

Types

Bun 🔗

test() 🔗

Run tests

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
bunVersionString "latest"No description provided
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@3e71b262697e14e66a172423d1c7f7eb3047a7ed call \
 test
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Bun().
			Test(ctx)
}
@function
async def example() -> str:
	return await (
		dag.bun()
		.test()
	)
@func()
async example(): Promise<string> {
	return dag
		.bun()
		.test()
}

run() 🔗

Run commands

Return Type
String !
Arguments
NameTypeDefault ValueDescription
commandString !-No description provided
srcDirectory -No description provided
bunVersionString "latest"No description provided
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@3e71b262697e14e66a172423d1c7f7eb3047a7ed call \
 run --command string
func (m *myModule) example(ctx context.Context, command string) string  {
	return dag.
			Bun().
			Run(ctx, command)
}
@function
async def example(command: str) -> str:
	return await (
		dag.bun()
		.run(command)
	)
@func()
async example(command: string): Promise<string> {
	return dag
		.bun()
		.run(command)
}