diff options
| author | Jeff Carr <[email protected]> | 2025-10-16 04:15:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-16 04:15:37 -0500 |
| commit | c5ba7ffcb12931b0507365142e73dd79cedaf901 (patch) | |
| tree | 754303589544679d71dfb07341d715c3b814fb19 /tableConfigs.go | |
| parent | 192985619e462e22ef6967557bf1398a9613d0f6 (diff) | |
make autogenerated config tables. bye old cruft!
Diffstat (limited to 'tableConfigs.go')
| -rw-r--r-- | tableConfigs.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tableConfigs.go b/tableConfigs.go new file mode 100644 index 0000000..914c4af --- /dev/null +++ b/tableConfigs.go @@ -0,0 +1,26 @@ +// Copyright 2025 WIT.COM Inc Licensed GPL 3.0 + +package forgepb + +import ( + "go.wit.com/log" +) + +// returns footer +func (pb *ForgeConfigs) PrintTable() string { + if pb == nil { + return "pb was nil" + } + tablePB := pb.MakeTable() + tablePB.PrintTable() + return log.Sprintf("forge Configs DefaultTable: %d entries", pb.Len()) +} + +func (pb *ForgeConfigs) MakeTable() *ForgeConfigsTable { + t := pb.NewTable("tagList") + t.NewUuid() + + col := t.AddNamespace() + col.Width = 28 + return t +} |
