Merge branch 'development' of github.com:freeflowuniverse/herolib into development

This commit is contained in:
2025-07-30 12:53:01 +02:00

View File

@@ -1,10 +1,9 @@
module playcmds module playcmds
import freeflowuniverse.herolib.develop.gittools import freeflowuniverse.herolib.develop.gittools
import freeflowuniverse.herolib.core.playbook { PlayBook } import freeflowuniverse.herolib.core.playbook
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
pub fn play_git(args_ PlayArgs) !PlayBook { pub fn play_git(args_ PlayArgs) !PlayBook {
mut args := args_ mut args := args_
mut plbook := args.plbook or { mut plbook := args.plbook or {
@@ -92,31 +91,31 @@ pub fn play_git(args_ PlayArgs) !PlayBook {
for mut repo in repos { for mut repo in repos {
match action_type { match action_type {
'pull' { 'pull' {
repo.pull(submodules: submodules) repo.pull(submodules: submodules)!
} }
'commit' { 'commit' {
repo.commit(message) repo.commit(message)!
} }
'push' { 'push' {
repo.push() repo.push()!
} }
'reset' { 'reset' {
repo.reset() repo.reset()!
} }
'branch_create' { 'branch_create' {
repo.branch_create(branchname) repo.branch_create(branchname)!
} }
'branch_switch' { 'branch_switch' {
repo.branch_switch(branchname) repo.branch_switch(branchname)!
} }
'tag_create' { 'tag_create' {
repo.tag_create(tagname) repo.tag_create(tagname)!
} }
'tag_switch' { 'tag_switch' {
repo.tag_switch(tagname) repo.tag_switch(tagname)!
} }
'delete' { 'delete' {
repo.delete() repo.delete()!
} }
else { else {
if !error_ignore { if !error_ignore {
@@ -144,7 +143,7 @@ pub fn play_git(args_ PlayArgs) !PlayBook {
account: account account: account
provider: provider provider: provider
status_update: status_update status_update: status_update
) )!
} }
// Handle !!git.reload_cache // Handle !!git.reload_cache
@@ -155,7 +154,7 @@ pub fn play_git(args_ PlayArgs) !PlayBook {
if coderoot.len > 0 { if coderoot.len > 0 {
gs = gittools.new(coderoot: coderoot)! gs = gittools.new(coderoot: coderoot)!
} }
gs.load(true) // Force reload gs.load(true)! // Force reload
} }
return plbook return plbook