Dagger
Search

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() *dagger.Git  {
	return dag.
			Git()
}
@function
def example() -> dagger.Git:
	return (
		dag.git()
	)
@func()
example(): Git {
	return dag
		.git()
}

Types

Git 🔗

getLatestTag() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-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 *dagger.Directory) string  {
	return dag.
			Git().
			Getlatesttag(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.git()
		.getlatesttag(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.git()
		.getLatestTag(source)
}

getLatestBranch() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-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 *dagger.Directory) string  {
	return dag.
			Git().
			Getlatestbranch(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.git()
		.getlatestbranch(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.git()
		.getLatestBranch(source)
}

getHash() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-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 *dagger.Directory) string  {
	return dag.
			Git().
			Gethash(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.git()
		.gethash(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.git()
		.getHash(source)
}