diff options
| author | Jeff Carr <[email protected]> | 2025-10-20 13:19:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-20 13:19:24 -0500 |
| commit | 898592febc56eb1073525636666063396d85aca6 (patch) | |
| tree | 507d33eefc9ba5d467c2c5ce829bdd13968f92e8 /doNewUser.go | |
| parent | 3246e9b1f7ba7b983ca536f06d1dbbb636d1ad5b (diff) | |
notsure
Diffstat (limited to 'doNewUser.go')
| -rw-r--r-- | doNewUser.go | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/doNewUser.go b/doNewUser.go index b9f9511..b9fe56a 100644 --- a/doNewUser.go +++ b/doNewUser.go @@ -9,7 +9,6 @@ import ( "errors" "go.wit.com/lib/fhelp" - "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" ) @@ -18,7 +17,7 @@ func doNewUser() (string, error) { var s string var err error - if me.forge.Config.Mode == forgepb.ForgeMode_UNKNOWN { + if me.forge.Mode == forgepb.ForgeMode_UNKNOWN { dumpDebug() log.Info("---- ----") log.Info("---- Welcome to forge!!! ----") @@ -32,21 +31,8 @@ func doNewUser() (string, error) { // log.Info("MODE NOT UNKNOWN") } - // TODO: verify config values are valid here - if me.forge.Config.ReposPB == "" { - log.Info("broken config. load default config here") - me.forge.Config, err = forgepb.MakeDefaultConfig() - } - - // TODO: make checks that make sense here and then exit from NEWUSER mode - if shell.Exists(me.forge.Config.ReposPB) { - log.Info("looks like you might not be a new user") - log.Info("a repos file already exists at", me.forge.Config.ReposPB) - // not a new user - return s, err - } - - if me.forge.Config.Mode != forgepb.ForgeMode_NEWUSER { + if me.forge.Mode != forgepb.ForgeMode_NEWUSER { + // you aren't a new user anymore return s, err } |
