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
dagger -m github.com/juli3nk/daggerverse/gitlocal@7720e71d912bff4ff71b5e49a13e5fa72394ac4a call \
 --source DIR_PATH
func (m *myModule) example(source *Directory) *Gitlocal  {
	return dag.
			Gitlocal(source)
}
@function
def example(source: dagger.Directory) -> dag.Gitlocal:
	return (
		dag.gitlocal(source)
	)
@func()
example(source: Directory): Gitlocal {
	return dag
		.gitlocal(source)
}

Types

Gitlocal 🔗

worktree() 🔗

Return Type
Directory !
Example
dagger -m github.com/juli3nk/daggerverse/gitlocal@7720e71d912bff4ff71b5e49a13e5fa72394ac4a call \
 --source DIR_PATH worktree
func (m *myModule) example(source *Directory) *Directory  {
	return dag.
			Gitlocal(source).
			Worktree()
}
@function
def example(source: dagger.Directory) -> dagger.Directory:
	return (
		dag.gitlocal(source)
		.worktree()
	)
@func()
example(source: Directory): Directory {
	return dag
		.gitlocal(source)
		.worktree()
}

uncommitted() 🔗

Returns if there is uncommitted files

Return Type
Boolean !
Example
dagger -m github.com/juli3nk/daggerverse/gitlocal@7720e71d912bff4ff71b5e49a13e5fa72394ac4a call \
 --source DIR_PATH uncommitted
func (m *myModule) example(ctx context.Context, source *Directory) bool  {
	return dag.
			Gitlocal(source).
			Uncommitted(ctx)
}
@function
async def example(source: dagger.Directory) -> bool:
	return await (
		dag.gitlocal(source)
		.uncommitted()
	)
@func()
async example(source: Directory): Promise<boolean> {
	return dag
		.gitlocal(source)
		.uncommitted()
}

getModifiedFiles() 🔗

Return Type
[String ! ] !
Arguments
NameTypeDefault ValueDescription
compareWithWorkingTreeBoolean !-No description provided
Example
dagger -m github.com/juli3nk/daggerverse/gitlocal@7720e71d912bff4ff71b5e49a13e5fa72394ac4a call \
 --source DIR_PATH get-modified-files --compare-with-working-tree boolean
func (m *myModule) example(ctx context.Context, source *Directory, compareWithWorkingTree bool) []string  {
	return dag.
			Gitlocal(source).
			GetModifiedFiles(ctx, compareWithWorkingTree)
}
@function
async def example(source: dagger.Directory, compare_with_working_tree: bool) -> List[str]:
	return await (
		dag.gitlocal(source)
		.get_modified_files(compare_with_working_tree)
	)
@func()
async example(source: Directory, compareWithWorkingTree: boolean): Promise<string[]> {
	return dag
		.gitlocal(source)
		.getModifiedFiles(compareWithWorkingTree)
}

getLatestCommit() 🔗

Return Type
String !
Example
dagger -m github.com/juli3nk/daggerverse/gitlocal@7720e71d912bff4ff71b5e49a13e5fa72394ac4a call \
 --source DIR_PATH get-latest-commit
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Gitlocal(source).
			GetLatestCommit(ctx)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.gitlocal(source)
		.get_latest_commit()
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.gitlocal(source)
		.getLatestCommit()
}

getLatestTag() 🔗

Return Type
String !
Example
dagger -m github.com/juli3nk/daggerverse/gitlocal@7720e71d912bff4ff71b5e49a13e5fa72394ac4a call \
 --source DIR_PATH get-latest-tag
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			Gitlocal(source).
			GetLatestTag(ctx)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.gitlocal(source)
		.get_latest_tag()
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.gitlocal(source)
		.getLatestTag()
}