bun
Installation
dagger install github.com/fluent-ci-templates/bun-pipeline@v0.6.12
Entrypoint
Return Type
Bun
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@c401d698c2260fea44693e056cbec3a442bfe019 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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
bunVersion | String | "latest" | No description provided |
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@c401d698c2260fea44693e056cbec3a442bfe019 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
Name | Type | Default Value | Description |
---|---|---|---|
command | String ! | - | No description provided |
src | Directory | - | No description provided |
bunVersion | String | "latest" | No description provided |
Example
dagger -m github.com/fluent-ci-templates/bun-pipeline@c401d698c2260fea44693e056cbec3a442bfe019 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)
}