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.2.0Entrypoint
Return Type
Yamllint Example
dagger -m github.com/thmshmm/daggerverse/yamllint@331a5d84a64890c071dddb41b74326f8aeece5b4 call \
func (m *MyModule) Example() *dagger.Yamllint {
return dag.
Yamllint()
}@function
def example() -> dagger.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 |
| path | String | - | No description provided |
| strict | Boolean | - | No description provided |
Example
dagger -m github.com/thmshmm/daggerverse/yamllint@331a5d84a64890c071dddb41b74326f8aeece5b4 call \
lint --src DIR_PATHfunc (m *MyModule) Example(ctx context.Context, src *dagger.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)
}