gh
No long description provided.
Installation
dagger install github.com/prefapp/aweris-daggerverse/gh@b301adc888e6c420b46e5b71f48ea4ea68023865Entrypoint
Return Type
Gh !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | - | GitHub CLI version. (default: latest version) |
| token | Secret | - | GitHub token. |
| repo | String | - | GitHub repository (e.g. "owner/repo"). |
| plugins | [String ! ] | - | Gh plugins |
| base | Container | - | Base container for the Github CLI |
Example
dagger -m github.com/prefapp/aweris-daggerverse/gh@b301adc888e6c420b46e5b71f48ea4ea68023865 call \
func (m *MyModule) Example() *dagger.Gh {
return dag.
Gh()
}@function
def example() -> dagger.Gh:
return (
dag.gh()
)@func()
example(): Gh {
return dag
.gh()
}Types
Gh 🔗
Gh is Github CLI module for Dagger
container() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | - | GitHub CLI version. (default: latest version) |
| token | Secret | - | GitHub token. |
| repo | String | - | GitHub repository (e.g. "owner/repo"). |
| plugins | [String ! ] | - | Gh plugins |
Example
dagger -m github.com/prefapp/aweris-daggerverse/gh@b301adc888e6c420b46e5b71f48ea4ea68023865 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Gh().
Container()
}@function
def example() -> dagger.Container:
return (
dag.gh()
.container()
)@func()
example(): Container {
return dag
.gh()
.container()
}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"). |
| plugins | [String ! ] | - | Gh plugins |
| disableCache | Boolean | false | disable cache |
Example
dagger -m github.com/prefapp/aweris-daggerverse/gh@b301adc888e6c420b46e5b71f48ea4ea68023865 call \
run --cmd stringfunc (m *MyModule) Example(cmd string) *dagger.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/prefapp/aweris-daggerverse/gh@b301adc888e6c420b46e5b71f48ea4ea68023865 call \
getfunc (m *MyModule) Example() *dagger.File {
return dag.
Gh().
Get()
}@function
def example() -> dagger.File:
return (
dag.gh()
.get()
)@func()
example(): File {
return dag
.gh()
.get()
}