Dagger
Search

semver

Based on https://semver.org/

Installation

dagger install github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8

Entrypoint

Return Type
Semver
Example
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
NameTypeDefault ValueDescription
srcDirectory !-Path to the source directory
versionString -min.maj.patch version
buildString -Build version
Example
dagger -m github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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
NameTypeDefault ValueDescription
srcDirectory !-Path to the source directory
noTsBoolean -No description provided
noCommitBoolean -No description provided
Example
dagger -m github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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
NameTypeDefault ValueDescription
verString !-No description provided
Example
dagger -m github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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
NameTypeDefault ValueDescription
versionString !-No description provided
buildString !-No description provided
Example
dagger -m github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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
NameTypeDefault ValueDescription
majInteger !-No description provided
minInteger !-No description provided
patchInteger !-No description provided
prereleaseString -No description provided
buildString -No description provided
Example
dagger -m github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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
NameTypeDefault ValueDescription
verString !-No description provided
Example
dagger -m github.com/dariusj1/daggerverse/semver@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 call \
 parse --ver string \
 json
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@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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@65e6f24a3cfa8d39b71536046ce8a30ed06dfac8 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()
}