cloc
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/staticaland/daggerverse/cloc@943cbe83e780bb00a83e61006a30367f3f029761
Entrypoint
Return Type
Cloc
Example
dagger -m github.com/staticaland/daggerverse/cloc@943cbe83e780bb00a83e61006a30367f3f029761 call \
func (m *myModule) example() *Cloc {
return dag.
Cloc()
}
@function
def example() -> dag.Cloc:
return (
dag.cloc()
)
@func()
example(): Cloc {
return dag
.cloc()
}
Types
Cloc 🔗
clocDir() 🔗
Count lines of code in a directory
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
jsonOutput | Boolean | - | json output |
yamlOutput | Boolean | - | yaml output |
Example
dagger -m github.com/staticaland/daggerverse/cloc@943cbe83e780bb00a83e61006a30367f3f029761 call \
cloc-dir --directory-arg DIR_PATH
func (m *myModule) example(ctx context.Context, directoryArg *Directory) string {
return dag.
Cloc().
ClocDir(ctx, directoryArg)
}
@function
async def example(directory_arg: dagger.Directory) -> str:
return await (
dag.cloc()
.cloc_dir(directory_arg)
)
@func()
async example(directoryArg: Directory): Promise<string> {
return dag
.cloc()
.clocDir(directoryArg)
}