Dagger
Search

yamllint

This module provides functions for linting YAML files using yamllint. The
module 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.0

Entrypoint

Return Type
Yamllint
Example
dagger -m github.com/thmshmm/daggerverse/yamllint@331a5d84a64890c071dddb41b74326f8aeece5b4 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
NameTypeDefault ValueDescription
srcDirectory !-No description provided
versionString -No description provided
pathString -No description provided
strictBoolean -No description provided
Example
dagger -m github.com/thmshmm/daggerverse/yamllint@331a5d84a64890c071dddb41b74326f8aeece5b4 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)
}