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@24ef0106f57ac60a79519a787c31724b0a7854bc
Entrypoint
Return Type
SemRel !
Example
dagger -m github.com/mjb141/daggerverse/sem-rel@24ef0106f57ac60a79519a787c31724b0a7854bc 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. |
checkIfCi | Boolean ! | true | No description provided |
dryRun | Boolean ! | true | No description provided |
Example
dagger -m github.com/mjb141/daggerverse/sem-rel@24ef0106f57ac60a79519a787c31724b0a7854bc call \
release --dir DIR_PATH --token env:MYSECRET --check-if-ci boolean --dry-run boolean
func (m *myModule) example(dir *Directory, token *Secret, checkIfCi bool, dryRun bool) *Container {
return dag.
SemRel().
Release(dir, token, checkIfCi, dryRun)
}
@function
def example(dir: dagger.Directory, token: dagger.Secret, check_if_ci: bool, dry_run: bool) -> dagger.Container:
return (
dag.sem_rel()
.release(dir, token, check_if_ci, dry_run)
)
@func()
example(dir: Directory, token: Secret, checkIfCi: boolean, dryRun: boolean): Container {
return dag
.semRel()
.release(dir, token, checkIfCi, dryRun)
}