wip: fix doctree example
This commit is contained in:
@@ -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()!
|
||||
}
|
||||
|
||||
|
||||
@@ -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 !{}
|
||||
|
||||
Reference in New Issue
Block a user