Merge pull request #5571 from cli/jg/add-display-name

codespaces: add Display Name to the list command
This commit is contained in:
Jose Garcia 2022-05-04 09:38:27 -04:00 committed by GitHub
commit 801cd3b282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,7 @@ func (a *App) List(ctx context.Context, limit int, exporter cmdutil.Exporter) er
tp := utils.NewTablePrinter(a.io)
if tp.IsTTY() {
tp.AddField("NAME", nil, nil)
tp.AddField("DISPLAY NAME", nil, nil)
tp.AddField("REPOSITORY", nil, nil)
tp.AddField("BRANCH", nil, nil)
tp.AddField("STATE", nil, nil)
@ -102,6 +103,7 @@ func (a *App) List(ctx context.Context, limit int, exporter cmdutil.Exporter) er
}
tp.AddField(formattedName, nil, nameColor)
tp.AddField(c.DisplayName, nil, nil)
tp.AddField(c.Repository.FullName, nil, nil)
tp.AddField(c.branchWithGitStatus(), nil, cs.Cyan)
if c.PendingOperation {