fileutils
This module demonstrates directory arguments and return valuesInstallation
dagger install github.com/vikram-dagger/daggerverse/fileutils@v0.1.2Entrypoint
Return Type
Fileutils Example
dagger -m github.com/vikram-dagger/daggerverse/fileutils@96f3906c8d31729569219cb392e474863b1ffed3 call \
func (m *MyModule) Example() *dagger.Fileutils {
return dag.
Fileutils()
}@function
def example() -> dagger.Fileutils:
return (
dag.fileutils()
)@func()
example(): Fileutils {
return dag
.fileutils()
}Types
Fileutils 🔗
tree() 🔗
Returns a tree representation of the directory provided as a string
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | No description provided |
Example
dagger -m github.com/vikram-dagger/daggerverse/fileutils@96f3906c8d31729569219cb392e474863b1ffed3 call \
tree --dir DIR_PATHfunc (m *MyModule) Example(ctx context.Context, dir *dagger.Directory) string {
return dag.
Fileutils().
Tree(ctx, dir)
}@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.fileutils()
.tree(dir)
)@func()
async example(dir: Directory): Promise<string> {
return dag
.fileutils()
.tree(dir)
}