gh
No long description provided.
Installation
dagger install github.com/aweris/daggerverse/gh@v0.0.2
Entrypoint
Return Type
Gh !
Arguments
Name | Type | Description |
---|---|---|
version | String | GitHub CLI version. (default: latest version) |
token | Secret | GitHub token. |
repo | String | GitHub repository (e.g. "owner/repo"). |
base | Container | Base container for the Github CLI |
Example
dagger -m github.com/aweris/daggerverse/gh@40225eddba455da97819d40692583cfb148244c8 call \
func (m *myModule) example() *Gh {
return dag.
Gh()
}
@function
def example() -> dag.Gh:
return (
dag.gh()
)
@func()
example(): Gh {
return dag
.gh()
}
Types
Gh 🔗
Gh is Github CLI module for Dagger
run() 🔗
Run a GitHub CLI command (accepts a single command string without “gh”).
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
cmd | String ! | - | Command to run. |
version | String | - | GitHub CLI version. (default: latest version) |
token | Secret | - | GitHub token. |
repo | String | - | GitHub repository (e.g. "owner/repo"). |
disableCache | Boolean | false | disable cache |
Example
dagger -m github.com/aweris/daggerverse/gh@40225eddba455da97819d40692583cfb148244c8 call \
run --cmd string
func (m *myModule) example(cmd string) *Container {
return dag.
Gh().
Run(cmd)
}
@function
def example(cmd: str) -> dagger.Container:
return (
dag.gh()
.run(cmd)
)
@func()
example(cmd: string): Container {
return dag
.gh()
.run(cmd)
}
get() 🔗
Get the GitHub CLI binary.
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
goos | String | - | operating system of the binary |
goarch | String | - | architecture of the binary |
version | String | - | version of the Github CLI |
Example
dagger -m github.com/aweris/daggerverse/gh@40225eddba455da97819d40692583cfb148244c8 call \
get
func (m *myModule) example() *File {
return dag.
Gh().
Get()
}
@function
def example() -> dagger.File:
return (
dag.gh()
.get()
)
@func()
example(): File {
return dag
.gh()
.get()
}