This commit is contained in:
2025-08-03 04:44:55 +02:00
parent 198a394be8
commit 8ae0d6e401
3 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
import freeflowuniverse.herolib.web.docusaurus
docusaurus.new(
docusaurus.add(
heroscript: '
!!docusaurus.define

View File

@@ -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 == '') {

View File

@@ -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