pre-commit
Module for running pre-commit commands.
Installation
dagger install github.com/mxdev88/daggerverse/pre-commit@97ac1e81c8710054ef2af99d30e05627f13c7ee3Entrypoint
Return Type
PreCommit ! Example
dagger -m github.com/mxdev88/daggerverse/pre-commit@97ac1e81c8710054ef2af99d30e05627f13c7ee3 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 🔗
base() 🔗
Build base environment
Return Type
Container !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| version | String ! | "3.8.0" | No description provided | 
Example
dagger -m github.com/mxdev88/daggerverse/pre-commit@97ac1e81c8710054ef2af99d30e05627f13c7ee3 call \
 base --version stringfunc (m *MyModule) Example(version string) *dagger.Container  {
	return dag.
			PreCommit().
			Base(version)
}@function
def example(version: str) -> dagger.Container:
	return (
		dag.pre_commit()
		.base(version)
	)@func()
example(version: string): Container {
	return dag
		.preCommit()
		.base(version)
}run() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| source | Directory ! | - | A directory. | 
| version | String ! | "3.8.0" | No description provided | 
Example
dagger -m github.com/mxdev88/daggerverse/pre-commit@97ac1e81c8710054ef2af99d30e05627f13c7ee3 call \
 run --source DIR_PATH --version stringfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory, version string) string  {
	return dag.
			PreCommit().
			Run(ctx, source, version)
}@function
async def example(source: dagger.Directory, version: str) -> str:
	return await (
		dag.pre_commit()
		.run(source, version)
	)@func()
async example(source: Directory, version: string): Promise<string> {
	return dag
		.preCommit()
		.run(source, version)
}