git
No long description provided.
Installation
dagger install github.com/bmwinstead/dagger-test/git@bca011e31c668ab26cb83af41b90022e654e166f
Entrypoint
Return Type
Git
Example
dagger -m github.com/bmwinstead/dagger-test/git@bca011e31c668ab26cb83af41b90022e654e166f call \
func (m *myModule) example() *Git {
return dag.
Git()
}
@function
def example() -> dag.Git:
return (
dag.git()
)
@func()
example(): Git {
return dag
.git()
}
Types
Git 🔗
getLatestTag() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/bmwinstead/dagger-test/git@bca011e31c668ab26cb83af41b90022e654e166f call \
get-latest-tag --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Git().
GetLatestTag(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.git()
.get_latest_tag(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.git()
.getLatestTag(source)
}
getLatestBranch() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/bmwinstead/dagger-test/git@bca011e31c668ab26cb83af41b90022e654e166f call \
get-latest-branch --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Git().
GetLatestBranch(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.git()
.get_latest_branch(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.git()
.getLatestBranch(source)
}
getHash() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/bmwinstead/dagger-test/git@bca011e31c668ab26cb83af41b90022e654e166f call \
get-hash --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Git().
GetHash(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.git()
.get_hash(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.git()
.getHash(source)
}