Commit 4b7a42dfb4

4b7a42dfb419b6cc402066b19c1452d7fd05ec1b

parent: 037e004e54

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-24 04:32 UTC

view: every sub-table under a section label

Ref #254
internal/control/adminhost.go +1 −1
@@ -333,7 +333,7 @@ func runAdminStats(c *Ctx, args []string) int {
333333 "lfs", humanBytes(d.LFSBytes),
334334 )
335335 if len(d.Repos) > 0 {
336 io.WriteString(w, "\n")
336 v.section("repos")
337337 tb := c.table(w, "PATH", "BYTES")
338338 for _, r := range d.Repos {
339339 tb.row(cRef(r.Path), cText(humanBytes(r.Bytes)))
internal/control/deps.go +1 −1
@@ -122,7 +122,7 @@ func runDepsStatus(c *Ctx, args []string) int {
122122 "tracked in", tracked,
123123 )
124124 if len(out.Behind) > 0 {
125 io.WriteString(w, "\n")
125 v.section("behind")
126126 tb := c.table(w, "ECOSYSTEM", "NAME", "CURRENT", "LATEST")
127127 for _, b := range out.Behind {
128128 tb.row(cText(b.Ecosystem), cRef(b.Name), cText(b.Current), cText(b.Latest))
internal/control/mr.go +1 −1
@@ -790,7 +790,7 @@ func runMRShow(c *Ctx, args []string) int {
790790 v.body(d.Body, d.BodyFormat)
791791
792792 if len(commits) > 1 {
793 io.WriteString(w, "\n")
793 v.section("commit")
794794 tb := c.table(w, "SHA", "SUBJECT")
795795 for _, cm := range commits {
796796 tb.row(cRef(fmt.Sprintf("%.10s", cm.SHA)), cFlex(cm.Subject))
internal/control/org.go +1 −1
@@ -140,7 +140,7 @@ func runOrgShow(c *Ctx, args []string) int {
140140 v := c.view(w)
141141 v.title(d.Org, "", "")
142142 if len(ms) > 0 {
143 io.WriteString(w, "\n")
143 v.section("members")
144144 tb := c.table(w, "USER", "ROLE")
145145 for _, m := range ms {
146146 tb.row(cRef(m.User), cState(m.Role))
internal/control/release.go +1 −1
@@ -310,7 +310,7 @@ func runReleaseShow(c *Ctx, args []string) int {
310310 )
311311 v.body(d.Notes, d.NotesFormat)
312312 if len(d.Assets) > 0 {
313 io.WriteString(w, "\n")
313 v.section("assets")
314314 tb := c.table(w, "NAME", "SIZE", "SHA256")
315315 for _, a := range d.Assets {
316316 tb.row(cRef(a.Name), cNum(a.Size), cFlex(a.SHA256))
internal/control/snippet.go +1 −1
@@ -231,7 +231,7 @@ func runSnippetShow(c *Ctx, args []string) int {
231231 "url", snippetURL(c, sn),
232232 )
233233 if len(files) > 0 {
234 io.WriteString(w, "\n")
234 v.section("files")
235235 tb := c.table(w, "NAME", "SIZE")
236236 for _, f := range files {
237237 tb.row(cRef(f.Name), cText(fmt.Sprintf("%d bytes", f.Size)))
internal/control/teams.go +1 −1
@@ -190,7 +190,7 @@ func runTeamShow(c *Ctx, args []string) int {
190190 v.title(org.Name+"/"+team.Name, "", "")
191191 v.fields("members", strings.Join(members, ", "))
192192 if len(grants) > 0 {
193 io.WriteString(w, "\n")
193 v.section("grants")
194194 tb := c.table(w, "REPO", "ROLE")
195195 for _, g := range grants {
196196 tb.row(cRef(g.RepoPath), cState(g.Role))