git
No long description provided.
Installation
dagger install github.com/bmwinstead/dagger-test/git@515b607e859a48159553efc18d1786864d7fa202
Entrypoint
Return Type
Git
Example
dagger -m github.com/bmwinstead/dagger-test/git@515b607e859a48159553efc18d1786864d7fa202 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@515b607e859a48159553efc18d1786864d7fa202 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@515b607e859a48159553efc18d1786864d7fa202 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@515b607e859a48159553efc18d1786864d7fa202 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)
}