diff options
| author | Jeff Carr <[email protected]> | 2024-11-21 02:24:31 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-21 02:24:31 -0600 |
| commit | 6d4a1be367c52c70febe70479127bfc1330a7676 (patch) | |
| tree | 5c79ff160fd8b2932d0964b6ad7f3a880e9fa460 /forgeConfig/main.go | |
| parent | 9617f8f174acc6099bf598477efb00931938d985 (diff) | |
add more config file options
Diffstat (limited to 'forgeConfig/main.go')
| -rw-r--r-- | forgeConfig/main.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/forgeConfig/main.go b/forgeConfig/main.go index 237698c..cd07016 100644 --- a/forgeConfig/main.go +++ b/forgeConfig/main.go @@ -52,12 +52,16 @@ func main() { // try to add, then save config and exit if argv.Add { log.Info("going to add a new repo", argv.GoPath) - new1 := new(forgepb.Repo) - new1.GoPath = argv.GoPath - new1.Writable = argv.Writable - new1.ReadOnly = argv.ReadOnly - new1.Directory = argv.Directory - if repos.Append(new1) { + new1 := forgepb.Repo{ + GoPath: argv.GoPath, + Writable: argv.Writable, + ReadOnly: argv.ReadOnly, + Directory: argv.Directory, + Favorite: argv.Favorite, + Interesting: argv.Interesting, + } + + if repos.Append(&new1) { log.Info("added", new1.GoPath, "ok") } else { log.Info("added", new1.GoPath, "failed") |
