diff options
| author | Jeff Carr <[email protected]> | 2025-10-16 04:32:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-16 04:32:04 -0500 |
| commit | fa7671233aba6b4e17505c8f8b39af5fa9a755d8 (patch) | |
| tree | d0d746096542079482719f2eabf46e31660cd48f /tableConfigs.go | |
| parent | c5ba7ffcb12931b0507365142e73dd79cedaf901 (diff) | |
old cruft replaced by potential future cruftv0.0.182
Diffstat (limited to 'tableConfigs.go')
| -rw-r--r-- | tableConfigs.go | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/tableConfigs.go b/tableConfigs.go index 914c4af..1bbc95b 100644 --- a/tableConfigs.go +++ b/tableConfigs.go @@ -20,7 +20,44 @@ func (pb *ForgeConfigs) MakeTable() *ForgeConfigsTable { t := pb.NewTable("tagList") t.NewUuid() - col := t.AddNamespace() - col.Width = 28 + // col := t.AddDirectory() + // col.Width = 6 + + var col *ForgeConfigFunc + + col = t.AddStringFunc("write", func(c *ForgeConfig) string { + if c.Writable { + return " r/w" + } + return "" + }) + col.Width = 5 + + col = t.AddStringFunc("private", func(c *ForgeConfig) string { + if c.Private { + return "true" + } + return "" + }) + col.Width = 7 + + col = t.AddStringFunc("dir", func(c *ForgeConfig) string { + if c.Directory { + return "true" + } + return "" + }) + col.Width = 5 + + col = t.AddStringFunc("watch", func(c *ForgeConfig) string { + if c.Favorite { + return "true" + } + return "" + }) + col.Width = 5 + + col = t.AddNamespace() + col.Width = -1 return t } |
