mason-git-info
No long description provided.
Installation
dagger install github.com/vbehar/mason-modules/mason-git-info@v0.0.5Entrypoint
Return Type
MasonGitInfo !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| gitDirectory | Directory | - | directory containing the git repository can be either the worktree (including the .git subdirectory) or the .git directory iteself |
| gitBaseContainer | Container | - | base container to use for git commands default to cgr.dev/chainguard/wolfi-base:latest with git installed |
Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
func (m *MyModule) Example() *dagger.MasonGitInfo {
return dag.
MasonGitInfo()
}@function
def example() -> dagger.MasonGitInfo:
return (
dag.mason_git_info()
)@func()
example(): MasonGitInfo {
return dag
.masonGitInfo()
}Types
MasonGitInfo 🔗
GitInfo contains information about a git reference
gitDirectory() 🔗
Return Type
Directory ! Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
git-directoryfunc (m *MyModule) Example() *dagger.Directory {
return dag.
MasonGitInfo().
GitDirectory()
}@function
def example() -> dagger.Directory:
return (
dag.mason_git_info()
.git_directory()
)@func()
example(): Directory {
return dag
.masonGitInfo()
.gitDirectory()
}container() 🔗
Return Type
Container ! Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
MasonGitInfo().
Container()
}@function
def example() -> dagger.Container:
return (
dag.mason_git_info()
.container()
)@func()
example(): Container {
return dag
.masonGitInfo()
.container()
}renderPlan() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| blueprint | Directory ! | - | No description provided |
Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
render-plan --blueprint DIR_PATHfunc (m *MyModule) Example(blueprint *dagger.Directory) *dagger.Directory {
return dag.
MasonGitInfo().
RenderPlan(blueprint)
}@function
def example(blueprint: dagger.Directory) -> dagger.Directory:
return (
dag.mason_git_info()
.render_plan(blueprint)
)@func()
example(blueprint: Directory): Directory {
return dag
.masonGitInfo()
.renderPlan(blueprint)
}infoFile() 🔗
Return Type
File ! Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
info-filefunc (m *MyModule) Example() *dagger.File {
return dag.
MasonGitInfo().
InfoFile()
}@function
def example() -> dagger.File:
return (
dag.mason_git_info()
.info_file()
)@func()
example(): File {
return dag
.masonGitInfo()
.infoFile()
}branchName() 🔗
Return Type
String ! Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
branch-namefunc (m *MyModule) Example(ctx context.Context) string {
return dag.
MasonGitInfo().
BranchName(ctx)
}@function
async def example() -> str:
return await (
dag.mason_git_info()
.branch_name()
)@func()
async example(): Promise<string> {
return dag
.masonGitInfo()
.branchName()
}repoUrl() 🔗
Return Type
String ! Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
repo-urlfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
MasonGitInfo().
RepoUrl(ctx)
}@function
async def example() -> str:
return await (
dag.mason_git_info()
.repo_url()
)@func()
async example(): Promise<string> {
return dag
.masonGitInfo()
.repoUrl()
}diffFile() 🔗
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| targets | [String ! ] | ["origin"] | No description provided |
Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
diff-filefunc (m *MyModule) Example() *dagger.File {
return dag.
MasonGitInfo().
DiffFile()
}@function
def example() -> dagger.File:
return (
dag.mason_git_info()
.diff_file()
)@func()
example(): File {
return dag
.masonGitInfo()
.diffFile()
}rawCmdAsFile() 🔗
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/vbehar/mason-modules/mason-git-info@4c9ae664f9594d09742fc8213a08bc2953902b80 call \
raw-cmd-as-file --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.File {
return dag.
MasonGitInfo().
RawCmdAsFile(args)
}@function
def example(args: List[str]) -> dagger.File:
return (
dag.mason_git_info()
.raw_cmd_as_file(args)
)@func()
example(args: string[]): File {
return dag
.masonGitInfo()
.rawCmdAsFile(args)
}