Dagger
Search

gitlocal

No long description provided.

Installation

dagger install github.com/juli3nk/daggerverse/gitlocal@7720e71d912bff4ff71b5e49a13e5fa72394ac4a

Entrypoint

Return Type
Gitlocal !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
func (m *myModule) example(source *Directory) *Gitlocal  {
	return dag.
			Gitlocal(source)
}

Types

Gitlocal 🔗

worktree() 🔗

Return Type
Directory !
Example
func (m *myModule) example(source *Directory) *Directory  {
	return dag.
			Gitlocal(source).
			Worktree()
}

uncommitted() 🔗

Returns if there is uncommitted files

Return Type
Boolean !
Example
func (m *myModule) example(ctx context.Context, source *Directory) bool  {
	return dag.
			Gitlocal(source).
			Uncommitted(ctx)
}

getModifiedFiles() 🔗

Return Type
[String ! ] !
Arguments
NameTypeDefault ValueDescription
compareWithWorkingTreeBoolean !-No description provided
Example
func (m *myModule) example(ctx context.Context, source *Directory, compareWithWorkingTree bool) []string  {
	return dag.
			Gitlocal(source).
			GetModifiedFiles(ctx, compareWithWorkingTree)
}

getLatestCommit() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Gitlocal(source).
			GetLatestCommit(ctx)
}

getLatestTag() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Gitlocal(source).
			GetLatestTag(ctx)
}