gitlocal
No long description provided.
Installation
dagger install github.com/juli3nk/daggerverse/gitlocal@13251b94e0cc875b6ea663dcf5e7375f206a0296Entrypoint
Return Type
Gitlocal !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/juli3nk/daggerverse/gitlocal@13251b94e0cc875b6ea663dcf5e7375f206a0296 call \
--source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Gitlocal {
return dag.
Gitlocal(source)
}@function
def example(source: dagger.Directory) -> dagger.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@13251b94e0cc875b6ea663dcf5e7375f206a0296 call \
--source DIR_PATH worktreefunc (m *MyModule) Example(source *dagger.Directory) *dagger.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@13251b94e0cc875b6ea663dcf5e7375f206a0296 call \
--source DIR_PATH uncommittedfunc (m *MyModule) Example(ctx context.Context, source *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| compareWithWorkingTree | Boolean ! | - | No description provided |
Example
dagger -m github.com/juli3nk/daggerverse/gitlocal@13251b94e0cc875b6ea663dcf5e7375f206a0296 call \
--source DIR_PATH get-modified-files --compare-with-working-tree booleanfunc (m *MyModule) Example(ctx context.Context, source *dagger.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@13251b94e0cc875b6ea663dcf5e7375f206a0296 call \
--source DIR_PATH get-latest-commitfunc (m *MyModule) Example(ctx context.Context, source *dagger.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@13251b94e0cc875b6ea663dcf5e7375f206a0296 call \
--source DIR_PATH get-latest-tagfunc (m *MyModule) Example(ctx context.Context, source *dagger.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()
}