Browse Source

💄 Display hosts chaining in hosts table

master
KaKi87 2 months ago
parent
commit
0cff0bb951
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      lib/tui/index.js

+ 4
- 1
lib/tui/index.js View File

@ -193,7 +193,10 @@ const getViews = screen => {
height: tableHeight,
columnsWidth: [ 50, 50 ],
headers: [ 'Host', 'URI' ],
data: hosts.map(host => [ host.name, `${host.username}@${host.address}:${host.port}` ])
data: hosts.map(host => [
host.chain ? `${host.name} (via ${host.chain.split(',').join(' -> ')})` : host.name,
`${host.username}@${host.address}:${host.port}`
])
});
selectButton.on('press', () => {
hostsTable.focus();


Loading…
Cancel
Save