Dagger
Search

bun

Installation

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

Entrypoint

Return Type
Bun
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@7245d77795940d3aaeb794ad766df84d24fdcbae 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@7245d77795940d3aaeb794ad766df84d24fdcbae 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@7245d77795940d3aaeb794ad766df84d24fdcbae 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)
}