| 12 | import { deploymentInfo, fetchFiles, listAirnodes, removeAirnode } from '../infrastructure'; |
| 13 | |
| 14 | function drawHeader() { |
| 15 | loggerUtils.log( |
| 16 | [ |
| 17 | ' ___ _ _ ', |
| 18 | ' / _ \\(_) | | ', |
| 19 | '/ /_\\ \\_ _ __ _ __ ___ __| | ___ ', |
| 20 | "| _ | | '__| '_ \\ / _ \\ / _` |/ _ \\", |
| 21 | '| | | | | | | | | | (_) | (_| | __/', |
| 22 | '\\_| |_/_|_| |_| |_|\\___/ \\__,_|\\___|', |
| 23 | '', |
| 24 | ` Airnode v${getNodeVersion()}`, |
| 25 | '', |
| 26 | ].join('\n') |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | async function runCommand(command: () => Promise<any>) { |
| 31 | const goCommand = await go(command); |