// Copyright 2017-2025 WIT.COM Inc. All rights reserved. // Use of this source code is governed by the GPL 3.0 package main import ( "os" "strings" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) func doAdd() error { wd, _ := os.Getwd() found := gitpb.NewRepos() for repo := range me.forge.Repos.IterAll() { if strings.HasPrefix(repo.FullPath, wd) { found.Append(repo) } } if found.Len() > 0 { me.forge.PrintDefaultTB(found) return nil } log.Info("todo: scan", wd, "here") return nil }