shellcheck
No long description provided.
Installation
dagger install github.com/dagger/shellcheck@3f800ffeea522da0bc36dc4f7bf86d2c9ef2139eEntrypoint
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 client's working directory |
| 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 moduleEntrypoint
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@3f800ffeea522da0bc36dc4f7bf86d2c9ef2139e call \
func (m *MyModule) Example() *dagger.Shellcheck {
return dag.
Shellcheck()
}@function
def example() -> dagger.Shellcheck:
return (
dag.shellcheck()
)@func()
example(): Shellcheck {
return dag
.shellcheck()
}Types
Script 🔗
path() 🔗
The path of the script relative to the client’s working directory
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 moduleShellcheck 🔗
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@3f800ffeea522da0bc36dc4f7bf86d2c9ef2139e 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 at or below the client’s working directory
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 at or below the client’s working directory 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@3f800ffeea522da0bc36dc4f7bf86d2c9ef2139e 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()
}