MCPcopy Create free account
hub / github.com/PaperElectron/Sundry / getHostList

Function getHostList

cli/interactive.js:50–62  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

48}
49
50function getHostList(message){
51 return red.listHosts()
52 .bind({})
53 .then(function(hosts) {
54 return Prompt({
55 type: 'list',
56 name: 'route',
57 message: message,
58 choices: output.hostList(hosts)
59
60 })
61 })
62}
63
64function mainPrompt() {
65 process.stdout.write('\033c');

Callers

nothing calls this directly

Calls 1

PromptFunction · 0.85

Tested by

no test coverage detected