cubzh
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/cubzh/cubzh@c8d7d2dc62a7cad0cbe57394f02d0a4ab3009c9d
Entrypoint
Return Type
Cubzh
Example
dagger -m github.com/cubzh/cubzh@c8d7d2dc62a7cad0cbe57394f02d0a4ab3009c9d call \
func (m *myModule) example() *Cubzh {
return dag.
Cubzh()
}
@function
def example() -> dag.Cubzh:
return (
dag.cubzh()
)
@func()
example(): Cubzh {
return dag
.cubzh()
}
Types
Cubzh 🔗
testCore() 🔗
Run core unit tests
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Source code |
Example
dagger -m github.com/cubzh/cubzh@c8d7d2dc62a7cad0cbe57394f02d0a4ab3009c9d call \
test-core --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) {
return dag.
Cubzh().
TestCore(ctx, src)
}
@function
async def example(src: dagger.Directory) -> None:
return await (
dag.cubzh()
.test_core(src)
)
@func()
async example(src: Directory): Promise<void> {
return dag
.cubzh()
.testCore(src)
}
formatCore() 🔗
Format the Cubzh source code using clang tools
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Source code to format |
check | Boolean | - | Only check, don't fix |
Example
dagger -m github.com/cubzh/cubzh@c8d7d2dc62a7cad0cbe57394f02d0a4ab3009c9d call \
format-core --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Cubzh().
FormatCore(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.cubzh()
.format_core(src)
)
@func()
example(src: Directory): Directory {
return dag
.cubzh()
.formatCore(src)
}
luaDev() 🔗
Build a Lua dev container with modules source code mounted
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Lua modules source code |
Example
dagger -m github.com/cubzh/cubzh@c8d7d2dc62a7cad0cbe57394f02d0a4ab3009c9d call \
lua-dev --src DIR_PATH
func (m *myModule) example(src *Directory) *Container {
return dag.
Cubzh().
LuaDev(src)
}
@function
def example(src: dagger.Directory) -> dagger.Container:
return (
dag.cubzh()
.lua_dev(src)
)
@func()
example(src: Directory): Container {
return dag
.cubzh()
.luaDev(src)
}
lintModules() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Modules source directory |
Example
dagger -m github.com/cubzh/cubzh@c8d7d2dc62a7cad0cbe57394f02d0a4ab3009c9d call \
lint-modules --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) {
return dag.
Cubzh().
LintModules(ctx, src)
}
@function
async def example(src: dagger.Directory) -> None:
return await (
dag.cubzh()
.lint_modules(src)
)
@func()
async example(src: Directory): Promise<void> {
return dag
.cubzh()
.lintModules(src)
}
lintCore() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Core source directory |
Example
dagger -m github.com/cubzh/cubzh@c8d7d2dc62a7cad0cbe57394f02d0a4ab3009c9d call \
lint-core --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) {
return dag.
Cubzh().
LintCore(ctx, src)
}
@function
async def example(src: dagger.Directory) -> None:
return await (
dag.cubzh()
.lint_core(src)
)
@func()
async example(src: Directory): Promise<void> {
return dag
.cubzh()
.lintCore(src)
}