pre-commit
Module for running pre-commit commands.
Installation
dagger install github.com/mxdev88/daggerverse/pre-commit@81b9a1489ff52670f26373c4fecd8f267b41b8f1
Entrypoint
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() *PreCommit {
return dag.
PreCommit()
}
@function
def example() -> dag.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_PATH
func (m *myModule) example(ctx context.Context, source *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)
}