This commit is contained in:
2025-08-13 12:09:11 +02:00
parent 15aeb136b2
commit 1501a09e62
17 changed files with 246 additions and 144 deletions

View File

@@ -96,6 +96,7 @@ pub fn cmd_git(mut cmdroot Command) {
mut allcmdsref := [&list_command, &clone_command, &push_command, &pull_command, &commit_command,
&reload_command, &delete_command, &sourcetree_command, &editor_command]
for mut c in allcmdsref {
c.add_flag(Flag{
flag: .bool
@@ -216,6 +217,7 @@ fn cmd_git_execute(cmd Command) ! {
// create the filter for doing group actions, or action on 1 repo
mut filter := cmd.flags.get_string('filter') or { '' }
if cmd.name in gittools.gitcmds.split(',') {
mut pull := cmd.flags.get_bool('pull') or { false }
mut reset := cmd.flags.get_bool('reset') or { false }
@@ -224,6 +226,7 @@ fn cmd_git_execute(cmd Command) ! {
pull = true
reset = true
}
mypath := gs.do(
filter: filter
reload: reload

View File

@@ -186,7 +186,7 @@ pub fn (mut h HTTPConnection) get_json(req Request) !string {
// Get Request with json data and return response as string
pub fn (mut h HTTPConnection) get(req_ Request) !string {
mut req := req_
req.debug = true
req.debug
req.method = .get
result := h.send(req)!
return result.data

View File

@@ -6,6 +6,7 @@ import freeflowuniverse.herolib.biz.bizmodel
import freeflowuniverse.herolib.web.site
import freeflowuniverse.herolib.web.docusaurus
import freeflowuniverse.herolib.clients.openai
import freeflowuniverse.herolib.clients.giteaclient
// -------------------------------------------------------------------
// run entry point for all HeroScript playcommands
@@ -18,6 +19,11 @@ pub mut:
heroscript_path string
plbook ?PlayBook
reset bool
emptycheck bool = true
}
pub fn play(args_ PlayArgs) ! {
return run(args_)
}
pub fn run(args_ PlayArgs) ! {
@@ -45,6 +51,11 @@ pub fn run(args_ PlayArgs) ! {
docusaurus.play(mut plbook)!
// Ensure we did not leave any actions unprocessed
plbook.empty_check()!
giteaclient.play(mut plbook)!
if args.emptycheck{
// Ensure we did not leave any actions unprocessed
plbook.empty_check()!
}
}