shellcheck
This module provides a function to lint a shell script with ShellCheck.
Installation
dagger install github.com/tsirysndr/daggerverse/shellcheck@d075b79f4a82a8cae968dbd2c79ed4996e77daba
Entrypoint
Return Type
Shellcheck
Example
dagger -m github.com/tsirysndr/daggerverse/shellcheck@d075b79f4a82a8cae968dbd2c79ed4996e77daba call \
func (m *myModule) example() *Shellcheck {
return dag.
Shellcheck()
}
@function
def example() -> dag.Shellcheck:
return (
dag.shellcheck()
)
@func()
example(): Shellcheck {
return dag
.shellcheck()
}
Types
Shellcheck 🔗
lint() 🔗
Lint a shell script with ShellCheck.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
files | String | "*.sh" | No description provided |
format | String | - | No description provided |
shell | String | - | No description provided |
severity | String | - | No description provided |
check | String | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/shellcheck@d075b79f4a82a8cae968dbd2c79ed4996e77daba call \
lint --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string {
return dag.
Shellcheck().
Lint(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
return await (
dag.shellcheck()
.lint(src)
)
@func()
async example(src: Directory): Promise<string> {
return dag
.shellcheck()
.lint(src)
}