Dagger
Search

dirdiff

No long description provided.

Installation

dagger install github.com/shykes/dagger/modules/dirdiff@8eef805a3164e4111c273ef47f79e699cc8f0f94

Entrypoint

Return Type
Dirdiff
Example
dagger -m github.com/shykes/dagger/modules/dirdiff@8eef805a3164e4111c273ef47f79e699cc8f0f94 call \
func (m *myModule) example() *Dirdiff  {
	return dag.
			Dirdiff()
}
@function
def example() -> dag.Dirdiff:
	return (
		dag.dirdiff()
	)
@func()
example(): Dirdiff {
	return dag
		.dirdiff()
}

Types

Dirdiff 🔗

assertEqual() 🔗

Return an error if two directories are not identical at the given paths. Paths not specified in the arguments are not compared.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
aDirectory !-The first directory to compare
bDirectory !-The second directory to compare
paths[String ! ] !-The paths to include in the comparison.
Example
dagger -m github.com/shykes/dagger/modules/dirdiff@8eef805a3164e4111c273ef47f79e699cc8f0f94 call \
 assert-equal --a DIR_PATH --b DIR_PATH --paths string1 --paths string2
func (m *myModule) example(ctx context.Context, a *Directory, b *Directory, paths []string)   {
	return dag.
			Dirdiff().
			AssertEqual(ctx, a, b, paths)
}
@function
async def example(a: dagger.Directory, b: dagger.Directory, paths: List[str]) -> None:
	return await (
		dag.dirdiff()
		.assert_equal(a, b, paths)
	)
@func()
async example(a: Directory, b: Directory, paths: string[]): Promise<void> {
	return dag
		.dirdiff()
		.assertEqual(a, b, paths)
}