buck
This module provides a set of functions to run common tasks with Buck.
Installation
dagger install github.com/fluent-ci-templates/buck-pipeline@v0.1.4Entrypoint
Return Type
Buck Example
dagger -m github.com/fluent-ci-templates/buck-pipeline@1f2d6e412977bd035271bf75b17c1dfcabe27f3c call \
func (m *MyModule) Example() *dagger.Buck {
return dag.
Buck()
}@function
def example() -> dagger.Buck:
return (
dag.buck()
)@func()
example(): Buck {
return dag
.buck()
}Types
Buck 🔗
build() 🔗
Build the project
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/buck-pipeline@1f2d6e412977bd035271bf75b17c1dfcabe27f3c call \
buildfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Buck().
Build(ctx)
}@function
async def example() -> str:
return await (
dag.buck()
.build()
)@func()
async example(): Promise<string> {
return dag
.buck()
.build()
}test() 🔗
Run tests
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/buck-pipeline@1f2d6e412977bd035271bf75b17c1dfcabe27f3c call \
testfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Buck().
Test(ctx)
}@function
async def example() -> str:
return await (
dag.buck()
.test()
)@func()
async example(): Promise<string> {
return dag
.buck()
.test()
}