booklit
No long description provided.
Installation
dagger install github.com/vito/booklit@e96f39e59f2d61f5f7ecf260fc1f564a2b07f42cEntrypoint
Return Type
Booklit !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
Example
dagger -m github.com/vito/booklit@e96f39e59f2d61f5f7ecf260fc1f564a2b07f42c call \
func (m *MyModule) Example() *dagger.Booklit {
return dag.
Booklit()
}@function
def example() -> dagger.Booklit:
return (
dag.booklit()
)@func()
example(): Booklit {
return dag
.booklit()
}Types
Booklit 🔗
CI/CD functions for the booklit project
lint() 🔗
Run golangci-lint against all Go code.
Return Type
Void ! Example
dagger -m github.com/vito/booklit@e96f39e59f2d61f5f7ecf260fc1f564a2b07f42c call \
lintfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Booklit().
Lint(ctx)
}@function
async def example() -> None:
return await (
dag.booklit()
.lint()
)@func()
async example(): Promise<void> {
return dag
.booklit()
.lint()
}build() 🔗
Build the booklit binary, with an optional version. Returns the directory containing the built binary.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | - | No description provided |
Example
dagger -m github.com/vito/booklit@e96f39e59f2d61f5f7ecf260fc1f564a2b07f42c call \
buildfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Booklit().
Build()
}@function
def example() -> dagger.Directory:
return (
dag.booklit()
.build()
)@func()
example(): Directory {
return dag
.booklit()
.build()
}test() 🔗
Run all Go tests in the project.
Return Type
Void ! Example
dagger -m github.com/vito/booklit@e96f39e59f2d61f5f7ecf260fc1f564a2b07f42c call \
testfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Booklit().
Test(ctx)
}@function
async def example() -> None:
return await (
dag.booklit()
.test()
)@func()
async example(): Promise<void> {
return dag
.booklit()
.test()
}