shellcheck
No long description provided.
Installation
dagger install github.com/dagger/shellcheck@34bcb268f4483fa31ea9e33b6a86aa7892144323Entrypoint
Return Type
Shellcheck !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| exclude | [String ! ] | - | Shell script paths to exclude from checking |
Example
dagger -m github.com/dagger/shellcheck@34bcb268f4483fa31ea9e33b6a86aa7892144323 call \
func (m *MyModule) Example() *dagger.Shellcheck {
return dag.
Shellcheck()
}@function
def example() -> dagger.Shellcheck:
return (
dag.shellcheck()
)@func()
example(): Shellcheck {
return dag
.shellcheck()
}Entrypoint
Return Type
Script !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | File ! | - | The shell script file to check |
| path | String ! | - | The path of the script relative to the workspace root |
| base | Container ! | - | The base container used to run shellcheck |
Example
Function Script.Constructor is not accessible from the shellcheck moduleFunction Script.Constructor is not accessible from the shellcheck moduleFunction Script.Constructor is not accessible from the shellcheck moduleFunction Script.Constructor is not accessible from the shellcheck moduleTypes
Shellcheck 🔗
A linter for shell scripts, powered by shellcheck
exclude() 🔗
Shell script paths to exclude from checking
Return Type
[String ! ] Example
dagger -m github.com/dagger/shellcheck@34bcb268f4483fa31ea9e33b6a86aa7892144323 call \
excludefunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Shellcheck().
Exclude(ctx)
}@function
async def example() -> List[str]:
return await (
dag.shellcheck()
.exclude()
)@func()
async example(): Promise<string[]> {
return dag
.shellcheck()
.exclude()
}check() 🔗
Run shellcheck on all shell scripts in the workspace
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ws | Workspace | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context) {
return dag.
Shellcheck().
Check(ctx)
}@function
async def example() -> None:
return await (
dag.shellcheck()
.check()
)@func()
async example(): Promise<void> {
return dag
.shellcheck()
.check()
}scripts() 🔗
Find all .sh files in the workspace and return them as Script objects
Return Type
[Script ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ws | Workspace | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example() []*dagger.ShellcheckScript {
return dag.
Shellcheck().
Scripts()
}@function
def example() -> List[dagger.ShellcheckScript]:
return (
dag.shellcheck()
.scripts()
)@func()
example(): ShellcheckScript[] {
return dag
.shellcheck()
.scripts()
}base() 🔗
The base container with shellcheck installed
Return Type
Container ! Example
dagger -m github.com/dagger/shellcheck@34bcb268f4483fa31ea9e33b6a86aa7892144323 call \
basefunc (m *MyModule) Example() *dagger.Container {
return dag.
Shellcheck().
Base()
}@function
def example() -> dagger.Container:
return (
dag.shellcheck()
.base()
)@func()
example(): Container {
return dag
.shellcheck()
.base()
}Script 🔗
path() 🔗
The path of the script relative to the workspace root
Return Type
String ! Example
Function ShellcheckScript.path is not accessible from the shellcheck moduleFunction ShellcheckScript.path is not accessible from the shellcheck moduleFunction ShellcheckScript.path is not accessible from the shellcheck moduleFunction ShellcheckScript.path is not accessible from the shellcheck modulecheck() 🔗
Run shellcheck on this script
Return Type
Void ! Example
Function ShellcheckScript.check is not accessible from the shellcheck moduleFunction ShellcheckScript.check is not accessible from the shellcheck moduleFunction ShellcheckScript.check is not accessible from the shellcheck moduleFunction ShellcheckScript.check is not accessible from the shellcheck module