summaryrefslogtreecommitdiff
path: root/tableConfigs.go
diff options
context:
space:
mode:
Diffstat (limited to 'tableConfigs.go')
-rw-r--r--tableConfigs.go41
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
}