blob: 7b9fa8c093534b669db34e54b502d25f2be974ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
// Use of this source code is governed by the GPL 3.0
package main
import (
"os"
"go.wit.com/gui"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
func okExit(thing string) {
gui.UnloadToolkits()
if configSave {
me.forge.SetConfigSave(configSave)
}
if thing != "" {
log.Info("forge exit:", thing, "ok")
}
me.forge.Exit()
}
func badExit(err error) {
log.Info(err)
log.Info("forge failed")
os.Exit(-1)
}
func newBadExit(msg string, err error) {
log.Info(err)
log.Info(msg)
os.Exit(-1)
}
func badRepoExit(repo *gitpb.Repo, err error) {
log.Printf("%s FAILED: %v\n", repo.GetNamespace(), err)
os.Exit(-1)
}
|