git-affected
A generated module for GitAffected functions
Installation
dagger install github.com/valorl/daggerverse/git-affected@e6c9cc59f90b8dbab08cf65db94351bff2b58ecb
Entrypoint
Return Type
GitAffected
Example
dagger -m github.com/valorl/daggerverse/git-affected@e6c9cc59f90b8dbab08cf65db94351bff2b58ecb call \
func (m *myModule) example() *GitAffected {
return dag.
GitAffected()
}
@function
def example() -> dag.GitAffected:
return (
dag.git_affected()
)
@func()
example(): GitAffected {
return dag
.gitAffected()
}
Types
GitAffected 🔗
listAffected() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
headRef | String | "HEAD" | No description provided |
baseRef | String | "main" | No description provided |
Example
dagger -m github.com/valorl/daggerverse/git-affected@e6c9cc59f90b8dbab08cf65db94351bff2b58ecb call \
list-affected --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
GitAffected().
ListAffected(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.git_affected()
.list_affected(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.gitAffected()
.listAffected(source)
}