Commit 1e071bc525
Verified · cmc ci/build: success ci/test: success
Layout: unified · split
internal/control/admin.go +2 −2
| @@ -383,7 +383,7 @@ func runAdminUserShow(c *Ctx, args []string) int { | |||
| 383 | } | 383 | } |
| 384 | keys := section{title: "Keys", n: len(d.Keys)} | 384 | keys := section{title: "Keys", n: len(d.Keys)} |
| 385 | for _, k := range d.Keys { | 385 | for _, k := range d.Keys { |
| 386 | keys.rows = append(keys.rows, rowOf(cRef(k.Fingerprint), cState(k.Scope), cMeta(k.Algo, "used "+relAge(k.LastUsedAt, termNow())))) | 386 | keys.rows = append(keys.rows, rowOf(cFlexRef(k.Fingerprint), cState(k.Scope), cMeta(k.Algo, "used "+relAge(k.LastUsedAt, termNow())))) |
| 387 | } | 387 | } |
| 388 | emails := section{title: "Emails", n: len(d.Emails)} | 388 | emails := section{title: "Emails", n: len(d.Emails)} |
| 389 | for _, e := range d.Emails { | 389 | for _, e := range d.Emails { |
| @@ -398,7 +398,7 @@ func runAdminUserShow(c *Ctx, args []string) int { | |||
| 398 | } | 398 | } |
| 399 | pgp := section{title: "PGP keys", n: len(d.PGPKeys)} | 399 | pgp := section{title: "PGP keys", n: len(d.PGPKeys)} |
| 400 | for _, k := range d.PGPKeys { | 400 | for _, k := range d.PGPKeys { |
| 401 | pgp.rows = append(pgp.rows, rowOf(cRef(k.Fingerprint))) | 401 | pgp.rows = append(pgp.rows, rowOf(cFlexRef(k.Fingerprint))) |
| 402 | } | 402 | } |
| 403 | orgs := section{title: "Orgs", n: len(d.Orgs)} | 403 | orgs := section{title: "Orgs", n: len(d.Orgs)} |
| 404 | for _, o := range d.Orgs { | 404 | for _, o := range d.Orgs { |
internal/control/status.go +1 −1
| @@ -154,7 +154,7 @@ func runStatusList(c *Ctx, args []string) int { | |||
| 154 | {"Commit", []cell{cRef(fmt.Sprintf("%.10s", d.SHA))}}, | 154 | {"Commit", []cell{cRef(fmt.Sprintf("%.10s", d.SHA))}}, |
| 155 | {"Combined", combined}, | 155 | {"Combined", combined}, |
| 156 | }, sections: []section{statuses}, actions: []action{ | 156 | }, sections: []section{statuses}, actions: []action{ |
| 157 | {"Report", []string{"status", "set", repo.Path(), d.SHA, "--context", "<context>", "--state", "success"}}, | 157 | {"Read", []string{"repo", "commit", repo.Path(), fmt.Sprintf("%.10s", d.SHA)}}, |
| 158 | }} | 158 | }} |
| 159 | }) | 159 | }) |
| 160 | } | 160 | } |