mirror of
https://github.com/caprover/caprover
synced 2026-08-07 08:10:56 +00:00
24 lines
437 B
JavaScript
24 lines
437 B
JavaScript
const chalk = require("chalk")
|
|
const MachineHelper = require("../helpers/MachineHelper")
|
|
|
|
function _displayMachine(machine) {
|
|
console.log(
|
|
">> " +
|
|
chalk.greenBright(machine.name) +
|
|
" at " +
|
|
chalk.cyan(machine.baseUrl)
|
|
)
|
|
}
|
|
|
|
function list() {
|
|
console.log("\nLogged in Captain Machines:\n")
|
|
|
|
MachineHelper.machines.map(machine => {
|
|
_displayMachine(machine)
|
|
})
|
|
|
|
console.log("")
|
|
}
|
|
|
|
module.exports = list
|