Merge pull request #5571 from cli/jg/add-display-name
codespaces: add Display Name to the list command
This commit is contained in:
commit
801cd3b282
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue