Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rndstr committed Jul 23, 2018
1 parent fd41ce7 commit 2b8f0a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions update/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (m *Menu) Print() {

func (m *Menu) printInteractive() {
m.wr.clear()
m.wr.writeln(" " + tableHeading)
m.wr.writeln(" " + tableHeading)
i := 0
var previd flux.ResourceID
for _, item := range m.items {
Expand All @@ -217,7 +217,7 @@ func (m *Menu) printInteractive() {
}
}
m.wr.writeln("")
m.wr.writeln("Use arrow keys and [Space] to deselect containers; hit [Enter] to release selected.")
m.wr.writeln("Use arrow keys and [Space] to toggle updates; hit [Enter] to release selected.")

m.wr.flush()
}
Expand All @@ -237,6 +237,7 @@ func (m *Menu) renderInteractiveItem(item menuItem, inline bool, index int) stri
} else {
pre.WriteString(" ")
}
pre.WriteString(" ")
pre.WriteString(item.checkbox())
pre.WriteString(" ")
pre.WriteString(m.renderItem(item, inline))
Expand Down
2 changes: 1 addition & 1 deletion update/menu_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ func terminalWidth() uint16 {
}

func getChar() (ascii int, keyCode int, err error) {
return 0, 0, errors.New("Error: interactive mode not supported on Windows")
return 0, 0, errors.New("Error: interactive mode is not supported on Windows")
}

0 comments on commit 2b8f0a0

Please sign in to comment.