From 8ae0d6e401515121e22c8559ed7d5f084b69b1d1 Mon Sep 17 00:00:00 2001 From: despiegk Date: Sun, 3 Aug 2025 04:44:55 +0200 Subject: [PATCH] ... --- examples/web/docusaurus_example.vsh | 2 +- lib/develop/gittools/gittools_do.v | 7 ++++--- lib/web/docusaurus/factory.v | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/web/docusaurus_example.vsh b/examples/web/docusaurus_example.vsh index 066793be..168be57e 100755 --- a/examples/web/docusaurus_example.vsh +++ b/examples/web/docusaurus_example.vsh @@ -2,7 +2,7 @@ import freeflowuniverse.herolib.web.docusaurus -docusaurus.new( +docusaurus.add( heroscript: ' !!docusaurus.define diff --git a/lib/develop/gittools/gittools_do.v b/lib/develop/gittools/gittools_do.v index 920a9b4b..5d9423ca 100644 --- a/lib/develop/gittools/gittools_do.v +++ b/lib/develop/gittools/gittools_do.v @@ -45,12 +45,12 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string { mut args := args_ // console.print_debug('git do ${args.cmd}') - if args.path == '' { + if args.path == '' && args.url == '' && args.repo == '' && args.account == '' && args.provider == '' && args.filter == ''{ args.path = os.getwd() + } - // see if its one repo we are in, based on current path - if args.repo == '' && args.account == '' && args.provider == '' && args.filter == '' { + if args.path != '' { mut curdiro := pathlib.get_dir(path: args.path, create: false)! mut parentpath := curdiro.parent_find('.git') or { pathlib.Path{} } if parentpath.path != '' { @@ -60,6 +60,7 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string { args.provider = r0.provider } } + // see if a url was used means we are in 1 repo if args.url.len > 0 { if !(args.repo == '' && args.account == '' && args.provider == '' && args.filter == '') { diff --git a/lib/web/docusaurus/factory.v b/lib/web/docusaurus/factory.v index 4a772ae8..73e10d85 100644 --- a/lib/web/docusaurus/factory.v +++ b/lib/web/docusaurus/factory.v @@ -18,7 +18,6 @@ pub struct AddArgs { pub: site &site.Site path_src string - // Parameters that were previously on the factory path_build string path_publish string install bool