Dagger
Search

gh

No long description provided.

Installation

dagger install github.com/aweris/daggerverse/gh@99a1336f8091ff43bf833778a324de1cadcf25ac

Entrypoint

Return Type
Gh
Example
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()

Return Type
String !
Arguments
NameTypeDefault ValueDescription
tokenSecret !-Github token
cmdString !-command to run
versionString "2.37.0"version of the Github CLI
Example
dagger -m github.com/aweris/daggerverse/gh@99a1336f8091ff43bf833778a324de1cadcf25ac call \
 run --token env:MYSECRET --cmd string
func (m *myModule) example(ctx context.Context, token *Secret, cmd string) string  {
	return dag.
			Gh().
			Run(ctx, token, cmd)
}
@function
async def example(token: dagger.Secret, cmd: str) -> str:
	return await (
		dag.gh()
		.run(token, cmd)
	)
@func()
async example(token: Secret, cmd: string): Promise<string> {
	return dag
		.gh()
		.run(token, cmd)
}

get()

Get returns the Github CLI binary

Return Type
File !
Arguments
NameTypeDefault ValueDescription
versionString "2.37.0"version of the Github CLI
Example
dagger -m github.com/aweris/daggerverse/gh@99a1336f8091ff43bf833778a324de1cadcf25ac 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()
}