prettier
No long description provided.
Installation
dagger install github.com/wingyplus/daggerverse/prettier@b9b978f7feaba1baf6c408b1a9dea01ac2ca3510Entrypoint
Return Type
Prettier Example
dagger -m github.com/wingyplus/daggerverse/prettier@b9b978f7feaba1baf6c408b1a9dea01ac2ca3510 call \
func (m *MyModule) Example() *dagger.Prettier {
return dag.
Prettier()
}@function
def example() -> dagger.Prettier:
return (
dag.prettier()
)@func()
example(): Prettier {
return dag
.prettier()
}Types
Prettier 🔗
formatFile() 🔗
Format a file.
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| path | File ! | - | No description provided |
Example
dagger -m github.com/wingyplus/daggerverse/prettier@b9b978f7feaba1baf6c408b1a9dea01ac2ca3510 call \
format-file --path file:pathfunc (m *MyModule) Example(path *dagger.File) *dagger.File {
return dag.
Prettier().
FormatFile(path)
}@function
def example(path: dagger.File) -> dagger.File:
return (
dag.prettier()
.format_file(path)
)@func()
example(path: File): File {
return dag
.prettier()
.formatFile(path)
}container() 🔗
Returns a container that contains prettier binary.
Return Type
Container ! Example
dagger -m github.com/wingyplus/daggerverse/prettier@b9b978f7feaba1baf6c408b1a9dea01ac2ca3510 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Prettier().
Container()
}@function
def example() -> dagger.Container:
return (
dag.prettier()
.container()
)@func()
example(): Container {
return dag
.prettier()
.container()
}