fileutils
This module demonstrates directory arguments and return valuesInstallation
dagger install github.com/vikram-dagger/daggerverse/fileutils@v0.1.2
Entrypoint
Return Type
Fileutils
Example
dagger -m github.com/vikram-dagger/daggerverse/fileutils@96f3906c8d31729569219cb392e474863b1ffed3 call \
func (m *myModule) example() *Fileutils {
return dag.
Fileutils()
}
@function
def example() -> dag.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_PATH
func (m *myModule) example(ctx context.Context, dir *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)
}