Merge pull request #4116 from cli/extensions-ui-tweaks

Extensions UI tweaks
This commit is contained in:
Mislav Marohnić 2021-08-16 19:00:30 +02:00 committed by GitHub
commit ca40eeba5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
t.AddField(repo, nil, nil)
var updateAvailable string
if c.UpdateAvailable() {
updateAvailable = "Update available"
updateAvailable = "Upgrade available"
}
t.AddField(updateAvailable, nil, cs.Green)
t.EndRow()
@ -126,7 +126,7 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
return cmd
}(),
&cobra.Command{
Use: "remove",
Use: "remove <name>",
Short: "Remove an installed extension",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {

View file

@ -159,7 +159,7 @@ func TestNewCmdExtension(t *testing.T) {
assert.Equal(t, 1, len(em.ListCalls()))
}
},
wantStdout: "gh test\tcli/gh-test\t\ngh test2\tcli/gh-test2\tUpdate available\n",
wantStdout: "gh test\tcli/gh-test\t\ngh test2\tcli/gh-test2\tUpgrade available\n",
},
}