semver
Based on https://semver.org/
Installation
dagger install github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47
Entrypoint
Return Type
Semver
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
func (m *myModule) example() *Semver {
return dag.
Semver()
}
@function
def example() -> dag.Semver:
return (
dag.semver()
)
@func()
example(): Semver {
return dag
.semver()
}
Types
Semver 🔗
getFull() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Path to the source directory |
version | String | - | min.maj.patch version |
build | String | - | Build version |
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
get-full --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string {
return dag.
Semver().
GetFull(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
return await (
dag.semver()
.get_full(src)
)
@func()
async example(src: Directory): Promise<string> {
return dag
.semver()
.getFull(src)
}
getBuild() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Path to the source directory |
noTs | Boolean | - | No description provided |
noCommit | Boolean | - | No description provided |
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
get-build --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string {
return dag.
Semver().
GetBuild(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
return await (
dag.semver()
.get_build(src)
)
@func()
async example(src: Directory): Promise<string> {
return dag
.semver()
.getBuild(src)
}
detectVersion() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
detect-version --src DIR_PATH
func (m *myModule) example(ctx context.Context, src *Directory) string {
return dag.
Semver().
DetectVersion(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
return await (
dag.semver()
.detect_version(src)
)
@func()
async example(src: Directory): Promise<string> {
return dag
.semver()
.detectVersion(src)
}
validate() 🔗
Return Type
Boolean !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ver | String ! | - | No description provided |
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
validate --ver string
func (m *myModule) example(ctx context.Context, ver string) bool {
return dag.
Semver().
Validate(ctx, ver)
}
@function
async def example(ver: str) -> bool:
return await (
dag.semver()
.validate(ver)
)
@func()
async example(ver: string): Promise<boolean> {
return dag
.semver()
.validate(ver)
}
concatVersion() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | - | No description provided |
build | String ! | - | No description provided |
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
concat-version --version string --build string
func (m *myModule) example(ctx context.Context, version string, build string) string {
return dag.
Semver().
ConcatVersion(ctx, version, build)
}
@function
async def example(version: str, build: str) -> str:
return await (
dag.semver()
.concat_version(version, build)
)
@func()
async example(version: string, build: string): Promise<string> {
return dag
.semver()
.concatVersion(version, build)
}
build() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
maj | Integer ! | - | No description provided |
min | Integer ! | - | No description provided |
patch | Integer ! | - | No description provided |
prerelease | String | - | No description provided |
build | String | - | No description provided |
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
build --maj integer --min integer --patch integer
func (m *myModule) example(ctx context.Context, maj int, min int, patch int) string {
return dag.
Semver().
Build(ctx, maj, min, patch)
}
@function
async def example(maj: int, min: int, patch: int) -> str:
return await (
dag.semver()
.build(maj, min, patch)
)
@func()
async example(maj: number, min: number, patch: number): Promise<string> {
return dag
.semver()
.build(maj, min, patch)
}
parse() 🔗
Return Type
Version !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ver | String ! | - | No description provided |
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
parse --ver string
func (m *myModule) example(ver string) *SemverVersion {
return dag.
Semver().
Parse(ver)
}
@function
def example(ver: str) -> dag.SemverVersion:
return (
dag.semver()
.parse(ver)
)
@func()
example(ver: string): SemverVersion {
return dag
.semver()
.parse(ver)
}
Version 🔗
maj() 🔗
Return Type
Integer !
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
parse --ver string \
maj
func (m *myModule) example(ctx context.Context, ver string) int {
return dag.
Semver().
Parse(ver).
Maj(ctx)
}
@function
async def example(ver: str) -> int:
return await (
dag.semver()
.parse(ver)
.maj()
)
@func()
async example(ver: string): Promise<number> {
return dag
.semver()
.parse(ver)
.maj()
}
min() 🔗
Return Type
Integer !
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
parse --ver string \
min
func (m *myModule) example(ctx context.Context, ver string) int {
return dag.
Semver().
Parse(ver).
Min(ctx)
}
@function
async def example(ver: str) -> int:
return await (
dag.semver()
.parse(ver)
.min()
)
@func()
async example(ver: string): Promise<number> {
return dag
.semver()
.parse(ver)
.min()
}
patch() 🔗
Return Type
Integer !
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
parse --ver string \
patch
func (m *myModule) example(ctx context.Context, ver string) int {
return dag.
Semver().
Parse(ver).
Patch(ctx)
}
@function
async def example(ver: str) -> int:
return await (
dag.semver()
.parse(ver)
.patch()
)
@func()
async example(ver: string): Promise<number> {
return dag
.semver()
.parse(ver)
.patch()
}
prerelease() 🔗
Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
parse --ver string \
prerelease
func (m *myModule) example(ctx context.Context, ver string) string {
return dag.
Semver().
Parse(ver).
Prerelease(ctx)
}
@function
async def example(ver: str) -> str:
return await (
dag.semver()
.parse(ver)
.prerelease()
)
@func()
async example(ver: string): Promise<string> {
return dag
.semver()
.parse(ver)
.prerelease()
}
build() 🔗
Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
parse --ver string \
build
func (m *myModule) example(ctx context.Context, ver string) string {
return dag.
Semver().
Parse(ver).
Build(ctx)
}
@function
async def example(ver: str) -> str:
return await (
dag.semver()
.parse(ver)
.build()
)
@func()
async example(ver: string): Promise<string> {
return dag
.semver()
.parse(ver)
.build()
}
json() 🔗
Return Type
String !
Example
dagger -m github.com/dariusj1/daggerverse/semver@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
parse --ver string \
json
func (m *myModule) example(ctx context.Context, ver string) string {
return dag.
Semver().
Parse(ver).
Json(ctx)
}
@function
async def example(ver: str) -> str:
return await (
dag.semver()
.parse(ver)
.json()
)
@func()
async example(ver: string): Promise<string> {
return dag
.semver()
.parse(ver)
.json()
}