snippetbox
No long description provided.
Installation
dagger install github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a
Entrypoint
Return Type
Snippetbox
Example
dagger -m github.com/levlaz/snippetbox@0435005e89e5fcccd2cfca2e8d4514a9084aca2a call \
func (m *myModule) example() *Snippetbox {
return dag.
Snippetbox()
}
@function
def example() -> dag.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 \
lint
func (m *myModule) example() *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 \
build
func (m *myModule) example() *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 \
test
func (m *myModule) example() *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 \
publish
func (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 \
serve
func (m *myModule) example() *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 \
ci
func (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 \
debug
func (m *myModule) example() *Container {
return dag.
Snippetbox().
Debug()
}
@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.debug()
)
@func()
example(): Container {
return dag
.snippetbox()
.debug()
}