main
alex 2024-09-07 13:08:40 +02:00
commit 75d4e32b38
3 changed files with 26 additions and 0 deletions

18
commit_and_tag.sh Executable file
View File

@ -0,0 +1,18 @@
git add *
read -p "Commit message: " commit_message
git commit -m "$commit_message"
current_tag=$(git describe --abbrev=0 --tags)
IFS='.' read -ra tag_parts <<< "$current_tag"
major="${tag_parts[0]}"
minor="${tag_parts[1]}"
patch="${tag_parts[2]}"
patch=$((patch + 1))
new_tag="$major.$minor.$patch"
git tag "$new_tag"
git push -u origin main
git push --tags

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.ex.umbach.dev/LMS/libcore
go 1.21.0

5
helloworld.go Normal file
View File

@ -0,0 +1,5 @@
package libcore
func HelloWorld() string {
return "Hello, World!"
}