Dagger
Search

gh

No long description provided.

Installation

dagger install github.com/prefapp/aweris-daggerverse/gh@3f551863c75b6bbd7f78f64c6a51fd677b73277e

Entrypoint

Return Type
Gh !
Arguments
NameTypeDefault ValueDescription
versionString -GitHub CLI version. (default: latest version)
tokenSecret -GitHub token.
repoString -GitHub repository (e.g. "owner/repo").
baseContainer -Base container for the Github CLI
Example
dagger -m github.com/prefapp/aweris-daggerverse/gh@3f551863c75b6bbd7f78f64c6a51fd677b73277e 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

container() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
versionString -GitHub CLI version. (default: latest version)
tokenSecret -GitHub token.
repoString -GitHub repository (e.g. "owner/repo").
Example
dagger -m github.com/prefapp/aweris-daggerverse/gh@3f551863c75b6bbd7f78f64c6a51fd677b73277e call \
 container
func (m *myModule) example() *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
NameTypeDefault ValueDescription
cmdString !-Command to run.
versionString -GitHub CLI version. (default: latest version)
tokenSecret -GitHub token.
repoString -GitHub repository (e.g. "owner/repo").
disableCacheBoolean falsedisable cache
Example
dagger -m github.com/prefapp/aweris-daggerverse/gh@3f551863c75b6bbd7f78f64c6a51fd677b73277e 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
NameTypeDefault ValueDescription
goosString -operating system of the binary
goarchString -architecture of the binary
versionString -version of the Github CLI
Example
dagger -m github.com/prefapp/aweris-daggerverse/gh@3f551863c75b6bbd7f78f64c6a51fd677b73277e 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()
}