versioner
No long description provided.
Installation
dagger install github.com/felipepimentel/daggerverse/versioner@v1.11.2
Entrypoint
Return Type
Versioner !
Example
dagger -m github.com/felipepimentel/daggerverse/versioner@2cd1f33f1a38ee03d5ed6d55a793a76792e08ec3 call \
func (m *myModule) example() *Versioner {
return dag.
Versioner()
}
@function
def example() -> dag.Versioner:
return (
dag.versioner()
)
@func()
example(): Versioner {
return dag
.versioner()
}
Types
Versioner 🔗
Versioner implements version management for repositories
bumpVersion() 🔗
BumpVersion creates a new version tag based on the latest tag
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
outputVersion | Boolean ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/versioner@2cd1f33f1a38ee03d5ed6d55a793a76792e08ec3 call \
bump-version --source DIR_PATH --output-version boolean
func (m *myModule) example(ctx context.Context, source *Directory, outputVersion bool) string {
return dag.
Versioner().
BumpVersion(ctx, source, outputVersion)
}
@function
async def example(source: dagger.Directory, output_version: bool) -> str:
return await (
dag.versioner()
.bump_version(source, output_version)
)
@func()
async example(source: Directory, outputVersion: boolean): Promise<string> {
return dag
.versioner()
.bumpVersion(source, outputVersion)
}
getCurrentVersion() 🔗
GetCurrentVersion returns the latest version tag in the repository
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/versioner@2cd1f33f1a38ee03d5ed6d55a793a76792e08ec3 call \
get-current-version --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string {
return dag.
Versioner().
GetCurrentVersion(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
return await (
dag.versioner()
.get_current_version(source)
)
@func()
async example(source: Directory): Promise<string> {
return dag
.versioner()
.getCurrentVersion(source)
}