Dagger
Search

gitlab-cli

GitLab CLI is a command-line tool that allows you to interact with the GitLab API.
See https://gitlab.com/gitlab-org/cli for more information.

Installation

dagger install github.com/vbehar/daggerverse/gitlab-cli@v0.3.1

Entrypoint

Return Type
GitlabCli !
Arguments
NameTypeDescription
tokenSecret token to use for authentication with GitLab.
hostString host of the GitLab instance.
repoString default gitlab repository for commands accepting the --repo flag.
groupString default gitlab group for commands accepting the --group flag.
Example
dagger -m github.com/vbehar/daggerverse/gitlab-cli@70a921c2c524bf236c05d4756b29c6d7016621eb call \
func (m *myModule) example() *GitlabCli  {
	return dag.
			GitlabCli()
}
@function
def example() -> dag.GitlabCli:
	return (
		dag.gitlab_cli()
	)
@func()
example(): GitlabCli {
	return dag
		.gitlabCli()
}

Types

GitlabCli 🔗

GitlabCli is a Dagger Module to interact with the GitLab CLI.

token() 🔗

Return Type
Secret !
Example
dagger -m github.com/vbehar/daggerverse/gitlab-cli@70a921c2c524bf236c05d4756b29c6d7016621eb call \
 token
func (m *myModule) example() *Secret  {
	return dag.
			GitlabCli().
			Token()
}
@function
def example() -> dagger.Secret:
	return (
		dag.gitlab_cli()
		.token()
	)
@func()
example(): Secret {
	return dag
		.gitlabCli()
		.token()
}

host() 🔗

Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/gitlab-cli@70a921c2c524bf236c05d4756b29c6d7016621eb call \
 host
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			GitlabCli().
			Host(ctx)
}
@function
async def example() -> str:
	return await (
		dag.gitlab_cli()
		.host()
	)
@func()
async example(): Promise<string> {
	return dag
		.gitlabCli()
		.host()
}

repo() 🔗

Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/gitlab-cli@70a921c2c524bf236c05d4756b29c6d7016621eb call \
 repo
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			GitlabCli().
			Repo(ctx)
}
@function
async def example() -> str:
	return await (
		dag.gitlab_cli()
		.repo()
	)
@func()
async example(): Promise<string> {
	return dag
		.gitlabCli()
		.repo()
}

group() 🔗

Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/gitlab-cli@70a921c2c524bf236c05d4756b29c6d7016621eb call \
 group
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			GitlabCli().
			Group(ctx)
}
@function
async def example() -> str:
	return await (
		dag.gitlab_cli()
		.group()
	)
@func()
async example(): Promise<string> {
	return dag
		.gitlabCli()
		.group()
}

container() 🔗

Container returns a container with the GitLab CLI installed.

Return Type
Container !
Example
dagger -m github.com/vbehar/daggerverse/gitlab-cli@70a921c2c524bf236c05d4756b29c6d7016621eb call \
 container
func (m *myModule) example() *Container  {
	return dag.
			GitlabCli().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.gitlab_cli()
		.container()
	)
@func()
example(): Container {
	return dag
		.gitlabCli()
		.container()
}

run() 🔗

Run runs the glab CLI with the given arguments.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
args[String ! ] -arguments to pass to the glab CLI
ctrContainer -container to use for the command, instead of the default container you can use this to customize the container
Example
dagger -m github.com/vbehar/daggerverse/gitlab-cli@70a921c2c524bf236c05d4756b29c6d7016621eb call \
 run
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			GitlabCli().
			Run(ctx)
}
@function
async def example() -> str:
	return await (
		dag.gitlab_cli()
		.run()
	)
@func()
async example(): Promise<string> {
	return dag
		.gitlabCli()
		.run()
}