Dagger
Search

bats

No long description provided.

Installation

dagger install github.com/sagikazarmark/daggerverse/bats@5c87d0725a44adae05607cc63cddcfc5c11a6ed4

Entrypoint

Return Type
Bats
Example
func (m *myModule) example() *Bats  {
	return dag.
			Bats()
}
@function
def example() -> dag.Bats:
	return (
		dag.bats()
	)
@func()
example(): Bats {
	return dag
		.bats()
}

Types

Bats 🔗

withVersion() 🔗

Specify which version of Bats to use.

Return Type
BatsContainer !
Arguments
NameTypeDefault ValueDescription
versionStringKind !-No description provided
Example
Function Bats.withVersion is not accessible from the bats module
func (m *myModule) example(version )   {
	return dag.
			Bats().
			WithVersion(version)
}
@function
def example(version: ) -> :
	return (
		dag.bats()
		.with_version(version)
	)
@func()
example(version: ):  {
	return dag
		.bats()
		.withVersion(version)
}

withImageRef() 🔗

Specify a custom image reference in “repository:tag” format.

Return Type
BatsContainer !
Arguments
NameTypeDefault ValueDescription
refStringKind !-No description provided
Example
Function Bats.withImageRef is not accessible from the bats module
func (m *myModule) example(ref )   {
	return dag.
			Bats().
			WithImageRef(ref)
}
@function
def example(ref: ) -> :
	return (
		dag.bats()
		.with_image_ref(ref)
	)
@func()
example(ref: ):  {
	return dag
		.bats()
		.withImageRef(ref)
}

withContainer() 🔗

Specify a custom container.

Return Type
BatsContainer !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-No description provided
Example
Function Bats.withContainer is not accessible from the bats module
func (m *myModule) example(ctr )   {
	return dag.
			Bats().
			WithContainer(ctr)
}
@function
def example(ctr: ) -> :
	return (
		dag.bats()
		.with_container(ctr)
	)
@func()
example(ctr: ):  {
	return dag
		.bats()
		.withContainer(ctr)
}

withSource() 🔗

Mount a source directory.

Return Type
BatsContainerWithSource !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function Bats.withSource is not accessible from the bats module
func (m *myModule) example(src )   {
	return dag.
			Bats().
			WithSource(src)
}
@function
def example(src: ) -> :
	return (
		dag.bats()
		.with_source(src)
	)
@func()
example(src: ):  {
	return dag
		.bats()
		.withSource(src)
}

container() 🔗

Return the default container.

Return Type
Container !
Example
Function Bats.container is not accessible from the bats module
func (m *myModule) example()   {
	return dag.
			Bats().
			Container()
}
@function
def example() -> :
	return (
		dag.bats()
		.container()
	)
@func()
example():  {
	return dag
		.bats()
		.container()
}

BatsContainer 🔗

ctr() 🔗

Return Type
Container !
Example
Function BatsBatsContainer.Ctr is not accessible from the bats module
Function BatsBatsContainer.Ctr is not accessible from the bats module
Function BatsBatsContainer.Ctr is not accessible from the bats module
Function BatsBatsContainer.Ctr is not accessible from the bats module

container() 🔗

Return the default container.

Return Type
Container !
Example
Function BatsBatsContainer.container is not accessible from the bats module
Function BatsBatsContainer.container is not accessible from the bats module
Function BatsBatsContainer.container is not accessible from the bats module
Function BatsBatsContainer.container is not accessible from the bats module

withSource() 🔗

Mount a source directory.

Return Type
BatsContainerWithSource !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function BatsBatsContainer.withSource is not accessible from the bats module
Function BatsBatsContainer.withSource is not accessible from the bats module
Function BatsBatsContainer.withSource is not accessible from the bats module
Function BatsBatsContainer.withSource is not accessible from the bats module

BatsContainerWithSource 🔗

batsContainer() 🔗

Return Type
BatsContainer !
Example
Function BatsBatsContainerWithSource.BatsContainer is not accessible from the bats module
Function BatsBatsContainerWithSource.BatsContainer is not accessible from the bats module
Function BatsBatsContainerWithSource.BatsContainer is not accessible from the bats module
Function BatsBatsContainerWithSource.BatsContainer is not accessible from the bats module

container() 🔗

Return the default container.

Return Type
Container !
Example
Function BatsBatsContainerWithSource.container is not accessible from the bats module
Function BatsBatsContainerWithSource.container is not accessible from the bats module
Function BatsBatsContainerWithSource.container is not accessible from the bats module
Function BatsBatsContainerWithSource.container is not accessible from the bats module

withSource() 🔗

Mount a source directory.

Return Type
BatsContainerWithSource !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function BatsBatsContainerWithSource.withSource is not accessible from the bats module
Function BatsBatsContainerWithSource.withSource is not accessible from the bats module
Function BatsBatsContainerWithSource.withSource is not accessible from the bats module
Function BatsBatsContainerWithSource.withSource is not accessible from the bats module

run() 🔗

example usage: “dagger call with-source –src . lint –document openapi.yaml”

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
args[StringKind ! ] !-No description provided
Example
Function BatsBatsContainerWithSource.run is not accessible from the bats module
Function BatsBatsContainerWithSource.run is not accessible from the bats module
Function BatsBatsContainerWithSource.run is not accessible from the bats module
Function BatsBatsContainerWithSource.run is not accessible from the bats module