dirdiff
No long description provided.
Installation
dagger install github.com/zongruxie4/dagger/modules/dirdiff@aaae30de24c414a24679687f045070a846097b21Entrypoint
Return Type
DirdiffExample
dagger -m github.com/zongruxie4/dagger/modules/dirdiff@aaae30de24c414a24679687f045070a846097b21 call \
func (m *MyModule) Example() *dagger.Dirdiff  {
	return dag.
			Dirdiff()
}@function
def example() -> dagger.Dirdiff:
	return (
		dag.dirdiff()
	)@func()
example(): Dirdiff {
	return dag
		.dirdiff()
}Types
Dirdiff 🔗
assertNoChanges() 🔗
AssertNoChanges asserts that a changeset is empty.
Return Type
Void !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| changes | Changeset ! | - | No description provided | 
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(ctx context.Context, changes *dagger.Changeset)   {
	return dag.
			Dirdiff().
			AssertNoChanges(ctx, changes)
}@function
async def example(changes: dagger.Changeset) -> None:
	return await (
		dag.dirdiff()
		.assert_no_changes(changes)
	)@func()
async example(changes: Changeset): Promise<void> {
	return dag
		.dirdiff()
		.assertNoChanges(changes)
}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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| a | Directory ! | - | The first directory to compare | 
| b | Directory ! | - | The second directory to compare | 
| paths | [String ! ] ! | - | The paths to include in the comparison. | 
Example
dagger -m github.com/zongruxie4/dagger/modules/dirdiff@aaae30de24c414a24679687f045070a846097b21 call \
 assert-equal --a DIR_PATH --b DIR_PATH --paths string1 --paths string2func (m *MyModule) Example(ctx context.Context, a *dagger.Directory, b *dagger.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)
}