Skip to content

Commit 32cf55a

Browse files
committed
Add core ID in outdated command output
1 parent b9b7a87 commit 32cf55a

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

cli/outdated/outdated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ func runOutdatedCommand(cmd *cobra.Command, args []string) {
5959

6060
// Prints outdated cores
6161
tab := table.New()
62-
tab.SetHeader(tr("Core name"), tr("Installed version"), tr("New version"))
62+
tab.SetHeader(tr("Core ID"), tr("Installed version"), tr("New version"), tr("Core name"))
6363
if len(outdatedResp.OutdatedPlatforms) > 0 {
6464
for _, p := range outdatedResp.OutdatedPlatforms {
65-
tab.AddRow(p.Name, p.Installed, p.Latest)
65+
tab.AddRow(p.Id, p.Installed, p.Latest, p.Name)
6666
}
6767
feedback.Print(tab.Render())
6868
}

i18n/data/en.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ msgstr "Connected"
378378
msgid "Core"
379379
msgstr "Core"
380380

381+
#: cli/outdated/outdated.go:62
382+
msgid "Core ID"
383+
msgstr "Core ID"
384+
381385
#: cli/outdated/outdated.go:62
382386
#: cli/update/update.go:99
383387
msgid "Core name"

i18n/rice-box.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/test_outdated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def test_outdated(run_command):
3333
result = run_command("outdated")
3434
assert result.ok
3535
lines = [l.strip() for l in result.stdout.splitlines()]
36-
assert lines[1].startswith("Arduino AVR Boards")
37-
assert lines[4].startswith("USBHost")
36+
assert "Arduino AVR Boards" in lines[1]
37+
assert "USBHost" in lines[4]
3838

3939

4040
def test_outdated_using_library_with_invalid_version(run_command, data_dir):

0 commit comments

Comments
 (0)