pre-commit
Module for running pre-commit commands.
Installation
dagger install github.com/mxdev88/daggerverse/pre-commit@81b9a1489ff52670f26373c4fecd8f267b41b8f1Entrypoint
Return Type
PreCommit !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | null | No description provided |
Example
dagger -m github.com/mxdev88/daggerverse/pre-commit@81b9a1489ff52670f26373c4fecd8f267b41b8f1 call \
func (m *MyModule) Example() *dagger.PreCommit {
return dag.
PreCommit()
}@function
def example() -> dagger.PreCommit:
return (
dag.pre_commit()
)@func()
example(): PreCommit {
return dag
.preCommit()
}Types
PreCommit 🔗
run() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | A directory. |
Example
dagger -m github.com/mxdev88/daggerverse/pre-commit@81b9a1489ff52670f26373c4fecd8f267b41b8f1 call \
run --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
PreCommit().
Run(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.pre_commit()
.run(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.preCommit()
.run(source)
}