markdownlint
Package inspired by https://github.com/sagikazarmark/daggerverse/blob/main/golangci-lint/main.go.Installation
dagger install github.com/act3-ai/daggerverse/markdownlint@4db424d15b2b7ee6f913bab01834538348eade8f
Entrypoint
Return Type
Markdownlint !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "latest" | Version (image tag) to use as a markdownlint-cli2 binary source. |
binary | File | - | markdownlint-cli2 binary. |
container | Container ! | - | Custom container to use as a base container. |
Example
dagger -m github.com/act3-ai/daggerverse/markdownlint@4db424d15b2b7ee6f913bab01834538348eade8f call \
--container IMAGE:TAG
func (m *myModule) example(container *dagger.Container) *dagger.Markdownlint {
return dag.
Markdownlint(container)
}
@function
def example(container: dagger.Container) -> dagger.Markdownlint:
return (
dag.markdownlint(container)
)
@func()
example(container: Container): Markdownlint {
return dag
.markdownlint(container)
}
Types
Markdownlint 🔗
container() 🔗
Return Type
Container !
Example
dagger -m github.com/act3-ai/daggerverse/markdownlint@4db424d15b2b7ee6f913bab01834538348eade8f call \
--container IMAGE:TAG container
func (m *myModule) example(container *dagger.Container) *dagger.Container {
return dag.
Markdownlint(container).
Container()
}
@function
def example(container: dagger.Container) -> dagger.Container:
return (
dag.markdownlint(container)
.container()
)
@func()
example(container: Container): Container {
return dag
.markdownlint(container)
.container()
}
run() 🔗
Run markdownlint-cli2.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | Source directory containing markdown files to be linted. |
config | File | - | Custom configuration file. |
extraArgs | [String ! ] | - | Additional arguments to pass to markdownlint-cli2. |
Example
dagger -m github.com/act3-ai/daggerverse/markdownlint@4db424d15b2b7ee6f913bab01834538348eade8f call \
--container IMAGE:TAG run --source DIR_PATH
func (m *myModule) example(container *dagger.Container, source *dagger.Directory) *dagger.Container {
return dag.
Markdownlint(container).
Run(source)
}
@function
def example(container: dagger.Container, source: dagger.Directory) -> dagger.Container:
return (
dag.markdownlint(container)
.run(source)
)
@func()
example(container: Container, source: Directory): Container {
return dag
.markdownlint(container)
.run(source)
}