summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-24 03:35:19 -0600
committerJeff Carr <[email protected]>2024-12-24 03:35:19 -0600
commit55e7e11a4c5b2cf07d3faf6f1321d071e6dc568c (patch)
treeb0ffebdd7481b5913191655ff47a43c86a332a7f /main.go
parent3505a66d84b13d71d530ca74d1dbc85d1c6cfb2b (diff)
set a Name for the patchsetv0.22.26
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/main.go b/main.go
index 3db4737..8b9672e 100644
--- a/main.go
+++ b/main.go
@@ -32,6 +32,9 @@ func main() {
me = new(mainType)
me.pp = arg.MustParse(&argv)
me.urlbase = argv.URL
+ if me.urlbase == "" {
+ me.urlbase = "https://go.wit.com/"
+ }
me.urlbase = strings.Trim(me.urlbase, "/") // track down why trailing '/' makes http POST not work
// load the ~/.config/forge/ config
@@ -108,12 +111,11 @@ func main() {
doCobol()
done = true
}
- }
-
- if argv.DoPatchSet {
- sendDevelDiff()
- // sendMasterDiff()
- okExit("patches")
+ if argv.Do.PatchSet != "" {
+ sendDevelDiff(argv.Do.PatchSet)
+ // sendMasterDiff()
+ okExit("patches")
+ }
}
if argv.ListPatchSet {