diff options
| author | Jeff Carr <[email protected]> | 2025-07-09 19:46:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-07-09 23:24:06 -0500 |
| commit | 0d9fe58e57c94856cf1cb9126ba62a86bd78a143 (patch) | |
| tree | ba7d751da2db7df7c5a62e239feb9334896c7e7c /main.go | |
| parent | 3d3a07c194e8314accc150b6aea9f70faaae47be (diff) | |
forged init
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -4,6 +4,7 @@ import ( "embed" "fmt" "net/http" + "os" "time" "go.wit.com/log" @@ -26,11 +27,21 @@ func main() { if argv.Hostname != "" { HOSTNAME = argv.Hostname } + // the default forged dir is /home/forge + if os.Getenv("FORGE_GOSRC") == "" { + os.Setenv("FORGE_GOSRC", "/home/forge") + } + + if argv.Init != nil { + doInit() + okExit("") + } if argv.List != nil { - doList() + exit(doList()) okExit("") } + // forge = forgepb.Init() if argv.Pull != nil { doPull() |
