yamllint
This module provides functions for linting YAML files using yamllint. Themodule can be used to lint a directory of YAML files and return the output.
The yamllint version can be specified as an optional argument, otherwise the
default version will be used.
Installation
dagger install github.com/thmshmm/daggerverse/yamllint@v0.1.0
Entrypoint
Return Type
Yamllint
Example
dagger -m github.com/thmshmm/daggerverse/yamllint@75a9ffd83708df7d7d90ce4a82305111affafa16 call \
func (m *myModule) example() *Yamllint {
return dag.
Yamllint()
}
@function
def example() -> dag.Yamllint:
return (
dag.yamllint()
)
@func()
example(): Yamllint {
return dag
.yamllint()
}
Types
Yamllint 🔗
lint() 🔗
Lint runs yamllint on the provided directory
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
version | String | - | No description provided |
Example
dagger -m github.com/thmshmm/daggerverse/yamllint@75a9ffd83708df7d7d90ce4a82305111affafa16 call \
lint --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string {
return dag.
Yamllint().
Lint(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
return await (
dag.yamllint()
.lint(src)
)
@func()
async example(src: Directory): Promise<string> {
return dag
.yamllint()
.lint(src)
}