snippetbox
No long description provided.
Installation
dagger install github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f
Entrypoint
Return Type
Snippetbox !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
func (m *myModule) example() *Snippetbox {
return dag.
Snippetbox()
}
Types
Snippetbox π
src() π
Return Type
Directory !
Example
func (m *myModule) example() *Directory {
return dag.
Snippetbox().
Src()
}
lint() π
Lint
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
Snippetbox().
Lint()
}
build() π
Build snippetbox binary for all supported platforms
Return Type
Directory !
Example
func (m *myModule) example() *Directory {
return dag.
Snippetbox().
Build()
}
test() π
Run test suite
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
quiet | Boolean | false | quiet output for tests |
Example
func (m *myModule) 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 |
---|---|---|---|
token | Secret | - | No description provided |
commit | String | "latest" | No description provided |
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
Snippetbox().
Publish(ctx)
}
server() π
Return snippetbox server with database service attached example usage: βdagger call server upβ
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
database | Service | - | No description provided |
Example
func (m *myModule) example() *Container {
return dag.
Snippetbox().
Server()
}
ci() π
Run entire CI pipeline example usage: βdagger call ciβ
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret | - | No description provided |
commit | String | "latest" | No description provided |
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
Snippetbox().
Ci(ctx)
}
debug() π
return container with service attached that is not running
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
database | Service | - | No description provided |
Example
func (m *myModule) example() *Container {
return dag.
Snippetbox().
Debug()
}