mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-15 03:24:29 +05:00
Compare commits
1 Commits
v6.0.0-bet
...
v6.0.0-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e590f668e6 |
@@ -42,10 +42,13 @@ from utils.sys_utils import (
|
|||||||
def get_kiauh_version() -> str:
|
def get_kiauh_version() -> str:
|
||||||
"""
|
"""
|
||||||
Helper method to get the current KIAUH version by reading the latest tag
|
Helper method to get the current KIAUH version by reading the latest tag
|
||||||
:return: string of the latest tag
|
:return: string of the latest tag or a default value if no tags exist
|
||||||
"""
|
"""
|
||||||
lastest_tag: str = get_local_tags(Path(__file__).parent.parent)[-1]
|
tags = get_local_tags(Path(__file__).parent.parent)
|
||||||
return lastest_tag
|
if tags:
|
||||||
|
return tags[-1]
|
||||||
|
else:
|
||||||
|
return "v?.?.?"
|
||||||
|
|
||||||
|
|
||||||
def convert_camelcase_to_kebabcase(name: str) -> str:
|
def convert_camelcase_to_kebabcase(name: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user