snippetbox
No long description provided.
Installation
dagger install github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2aEntrypoint
Return Type
Snippetbox Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
func (m *MyModule) Example() *dagger.Snippetbox {
return dag.
Snippetbox()
}@function
def example() -> dagger.Snippetbox:
return (
dag.snippetbox()
)@func()
example(): Snippetbox {
return dag
.snippetbox()
}Types
Snippetbox 🔗
lint() 🔗
Lint
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
lintfunc (m *MyModule) Example() *dagger.Container {
return dag.
Snippetbox().
Lint()
}@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.lint()
)@func()
example(): Container {
return dag
.snippetbox()
.lint()
}build() 🔗
Build snippetbox binary for all supported platforms
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
buildfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Snippetbox().
Build()
}@function
def example() -> dagger.Directory:
return (
dag.snippetbox()
.build()
)@func()
example(): Directory {
return dag
.snippetbox()
.build()
}test() 🔗
Run test suite
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory | - | No description provided |
| quiet | Boolean | false | quiet output for tests |
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
testfunc (m *MyModule) Example() *dagger.Container {
return dag.
Snippetbox().
Test()
}@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.test()
)@func()
example(): Container {
return dag
.snippetbox()
.test()
}publish() 🔗
publish to dockerhub or ttl.sh if no token is provided
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory | - | No description provided |
| token | Secret | - | No description provided |
| commit | String | "latest" | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
publishfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Snippetbox().
Publish(ctx)
}@function
async def example() -> str:
return await (
dag.snippetbox()
.publish()
)@func()
async example(): Promise<string> {
return dag
.snippetbox()
.publish()
}serve() 🔗
Serve development site example usage: “dagger call serve up”
Return Type
Service !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory | - | No description provided |
| database | Service | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
servefunc (m *MyModule) Example() *dagger.Service {
return dag.
Snippetbox().
Serve()
}@function
def example() -> dagger.Service:
return (
dag.snippetbox()
.serve()
)@func()
example(): Service {
return dag
.snippetbox()
.serve()
}ci() 🔗
Run entire CI pipeline example usage: “dagger call ci”
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory | - | No description provided |
| token | Secret | - | No description provided |
| commit | String | "latest" | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
cifunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Snippetbox().
Ci(ctx)
}@function
async def example() -> str:
return await (
dag.snippetbox()
.ci()
)@func()
async example(): Promise<string> {
return dag
.snippetbox()
.ci()
}debug() 🔗
Debug build container with MariaDB service attached
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory | - | No description provided |
| database | Service | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
debugfunc (m *MyModule) Example() *dagger.Container {
return dag.
Snippetbox().
Debug()
}@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.debug()
)@func()
example(): Container {
return dag
.snippetbox()
.debug()
}