summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-22 08:30:27 -0500
committerJeff Carr <[email protected]>2025-03-22 08:30:27 -0500
commit88e87f5c1a3b208afdf505145fff406167411c0e (patch)
treee521c22b3279d356b5d3245e1577423b30f43780 /init.go
parentb2ed4102763421924b29ab4bb6be1a1e5b4b9647 (diff)
use hostname.Get()v0.0.102
Diffstat (limited to 'init.go')
-rw-r--r--init.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.go b/init.go
index 94b58d3..e91b9e9 100644
--- a/init.go
+++ b/init.go
@@ -9,6 +9,7 @@ import (
"time"
"go.wit.com/lib/gui/shell"
+ "go.wit.com/lib/hostname"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -149,6 +150,8 @@ func (f *Forge) InitMachine() {
usr, _ := user.Current()
f.Config.Username = usr.Username
}
+ f.hostname, _ = hostname.Get()
+ // log.Info(hostname, err)
}
// only init's the protobuf. intended to not scan or change anything