Dagger
Search

pre-commit

Module for running pre-commit commands.

Installation

dagger install github.com/mxdev88/daggerverse/pre-commit@76a2ce38cc865eb70baaca081b8fcbd814f84e2e

Entrypoint

Return Type
PreCommit !
Arguments
NameTypeDefault ValueDescription
versionString nullNo description provided
Example
dagger -m github.com/mxdev88/daggerverse/pre-commit@76a2ce38cc865eb70baaca081b8fcbd814f84e2e 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
NameTypeDefault ValueDescription
sourceDirectory !-A directory.
Example
dagger -m github.com/mxdev88/daggerverse/pre-commit@76a2ce38cc865eb70baaca081b8fcbd814f84e2e 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)
}