summaryrefslogtreecommitdiff
path: root/windowHowto.go
blob: 6a947d1bbfb8bc4c76591f4f5231415e990e5689 (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
41
42
43
44
45
46
47
48
49
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
// Use of this source code is governed by the GPL 3.0

package main

// An app to submit patches for the 30 GO GUI repos

import (
	"go.wit.com/lib/ENV"
	"go.wit.com/lib/gadgets"
)

func makeHowtoWin() *gadgets.GenericWindow {
	howtoWin := gadgets.NewGenericWindow("Howto", "forge -- a GUI tool for git repostories")
	tmp := `A good way to see how forge works is to download forge

	This will 'git clone' a few things (~50 repos):
	`
	howtoWin.Group.NewLabel(tmp)
	grid := howtoWin.Group.RawGrid()
	grid.NewLabel("forge")
	grid.NewLabel("the sources for forge")
	grid.NextRow()

	grid.NewLabel("autogenpb")
	grid.NewLabel("generates needed code for working with the protobuf files")
	grid.NextRow()

	grid.NewLabel("go-clone")
	grid.NewLabel("recursively 'git clone' dependencies based on go.mod")
	grid.NextRow()

	grid.NewLabel("the GUI")
	grid.NewLabel("GO plugins for libcurses and GTK")
	grid.NextRow()

	grid.NewLabel("") // a stupid way to add padding
	grid.NextRow()

	// howtoWin.Group.NewLabel("Working dir: " + ENV.Get("gopath"))

	grid = howtoWin.Group.RawGrid()
	grid.NewButton("Download into "+ENV.Get("gopath"), func() {
		howtoWin.Disable()
		defer howtoWin.Enable()
		doRebuildForge()
	})
	return howtoWin
}