wip: fix doctree example

This commit is contained in:
2024-12-30 13:55:29 +02:00
parent e34a770cc6
commit 67132dcda8
3 changed files with 2 additions and 4 deletions

View File

@@ -93,7 +93,8 @@ pub fn get(args_ GitStructureArgGet) !&GitStructure {
coderoot: pathlib.get_dir(path: args.coderoot, create: true)!
}
if args.reload {
// TODO: should we load repos here disregarding the reload flag?
if gs.repos.keys().len == 0 || args.reload {
gs.load()!
}

View File

@@ -42,9 +42,7 @@ pub mut:
// - args (StatusUpdateArgs): Arguments controlling the reload behavior.
pub fn (mut gitstructure GitStructure) load(args StatusUpdateArgs) ! {
mut processed_paths := []string{}
println('1')
gitstructure.load_recursive(gitstructure.coderoot.path, mut processed_paths)!
println('2')
if args.reload {
mut ths := []thread !{}