docs
This commit is contained in:
parent
aa229b8778
commit
0529b0dca0
20
README.md
20
README.md
|
@ -1,5 +1,12 @@
|
|||
# forge
|
||||
|
||||
## Design Goals
|
||||
|
||||
* Software engineering is the art of making things work.
|
||||
* Release engineering is the art of making things perfect.
|
||||
|
||||
## Notes
|
||||
|
||||
This can be used to maintain git repositories
|
||||
expiremental work on federated git
|
||||
|
||||
|
@ -9,22 +16,25 @@ expiremental work on federated git
|
|||
* uses a GUI or the console(console display needs work)
|
||||
* always wrap around 'git' -- it basically just types 'git' commands really fast
|
||||
|
||||
## Notes & Goals:
|
||||
## Development Goals
|
||||
|
||||
* use a GUI that also works on the command line
|
||||
* andlabs GTK gui plugin starts breaking around 200 repos
|
||||
* have a GUI that also works on the command line
|
||||
|
||||
## Install:
|
||||
|
||||
* go install go.wit.com/apps/forge@latest
|
||||
|
||||
## building from sources (may work Jan 2026)
|
||||
## building from sources
|
||||
|
||||
```
|
||||
# note as of Feb 2025. Forge has an option in forge to build itself.
|
||||
# The instructions below are out of date, but provide the general idea.
|
||||
# accurate instructions are in the forge code itself
|
||||
|
||||
go install go.wit.com/apps/go-clone@latest # this tool makes it easier to 'git clone' repos and recursively 'git clone' the dependancies
|
||||
go install go.wit.com/apps/autogenpb@latest # this tool will generate the protobuf *pb.go files (also Marshal(), Sort(), etc.)
|
||||
|
||||
go-clone --recursive go.wit.com/apps/forge # this will 'git clone' about 20 repos into ~/go/src (or where your go.work file is)
|
||||
go-clone go.wit.com/apps/forge # this will 'git clone' about 20 repos into ~/go/src (or where your go.work file is)
|
||||
|
||||
cd go.wit.com/lib/protobuf/forgepb
|
||||
make # autogenpb will make .pb.go, marshal.pb.go and sort.pb.go files
|
||||
|
|
|
@ -95,11 +95,7 @@ func makeReposWin() *gadgets.GenericWindow {
|
|||
log.Info("test delete window here")
|
||||
}
|
||||
grid := insertWin.Group.RawGrid()
|
||||
grid.NewButton("do something", func() {
|
||||
log.Info("do something on each pb row")
|
||||
})
|
||||
grid.NewButton("attempt to insert table", func() {
|
||||
// make the window for the first time
|
||||
var t *gitpb.ReposTable
|
||||
found := new(gitpb.Repos)
|
||||
all := me.forge.Repos.SortByFullPath()
|
||||
for all.Scan() {
|
||||
|
@ -111,9 +107,14 @@ func makeReposWin() *gadgets.GenericWindow {
|
|||
found.AppendByGoPath(repo)
|
||||
|
||||
}
|
||||
t := addWindowPB(insertWin, found)
|
||||
grid.NewButton("insert table", func() {
|
||||
// make the window for the first time
|
||||
t = addWindowPB(insertWin, found)
|
||||
log.Info("table has uuid", t.GetUuid())
|
||||
})
|
||||
grid.NewButton("attempt to delete table", func() {
|
||||
t.Delete()
|
||||
})
|
||||
})
|
||||
|
||||
grid.NewButton("Configure", func() {
|
||||
|
|
Loading…
Reference in New Issue