sem-rel
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/mjb141/daggerverse/sem-rel@ff46f2f41c169a25499651b776f0a35d494c6371
Entrypoint
Return Type
SemRel !
Example
dagger -m github.com/mjb141/daggerverse/sem-rel@ff46f2f41c169a25499651b776f0a35d494c6371 call \
func (m *myModule) example() *SemRel {
return dag.
SemRel()
}
@function
def example() -> dag.SemRel:
return (
dag.sem_rel()
)
@func()
example(): SemRel {
return dag
.semRel()
}
Types
SemRel 🔗
release() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | A directory. |
token | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
Example
dagger -m github.com/mjb141/daggerverse/sem-rel@ff46f2f41c169a25499651b776f0a35d494c6371 call \
release --dir DIR_PATH --token env:MYSECRET
func (m *myModule) example(dir *Directory, token *Secret) *Container {
return dag.
SemRel().
Release(dir, token)
}
@function
def example(dir: dagger.Directory, token: dagger.Secret) -> dagger.Container:
return (
dag.sem_rel()
.release(dir, token)
)
@func()
example(dir: Directory, token: Secret): Container {
return dag
.semRel()
.release(dir, token)
}