summaryrefslogtreecommitdiff
path: root/doFix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-28 08:40:26 -0500
committerJeff Carr <[email protected]>2025-10-28 08:40:26 -0500
commit10064774935efffdfda80adc68d06cb1b1fd01d8 (patch)
treee3e39e2bf1afb15b8d3ba662d392fc14a27fed4d /doFix.go
parent0e83fccb13f0c7d84fe6db01565d5c6a876d7320 (diff)
rearrange now that argv is working
Diffstat (limited to 'doFix.go')
-rw-r--r--doFix.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/doFix.go b/doFix.go
index cfc54b3..068ebee 100644
--- a/doFix.go
+++ b/doFix.go
@@ -16,20 +16,20 @@ func getPorcelain() (string, error) {
}
// is every repo on the devel branch?
-func doFix() (string, error) {
+func doFix(f *FixCmd) (string, error) {
var s string
var err error
- if argv.Fixer.Urls {
+ if f.Urls {
err = doFixUrls()
}
- if argv.Fixer.Untracked {
+ if f.Untracked {
return doRemoveUntrackedFiles()
}
- if argv.Fixer.DeleteUser {
+ if f.DeleteUser {
return doDeleteUser()
}
- if argv.Fixer.Prune {
+ if f.Prune {
// git fetch --prune
for repo := range me.forge.Repos.IterByNamespace() {
if me.forge.Config.IsReadOnly(repo.Namespace) {
@@ -39,7 +39,7 @@ func doFix() (string, error) {
}
}
- if argv.Fixer.Porcelain != nil {
+ if f.Porcelain != nil {
s, err = getPorcelain()
log.Info("GET PORCELAIN SENT BACK", s, err)
for repo := range me.forge.Repos.IterByFullPath() {