snips-sam
Version:
The Snips Assistant Manager
15 lines (11 loc) • 402 B
text/typescript
import * as yargs from 'yargs';
import { cli } from '../cli';
import { SSHService } from '../session/ssh';
exports.command = 'log';
exports.desc = 'Show MQTT logs';
exports.handler = async (argv: yargs.Argv) => {
const ssh = new SSHService();
await ssh.connect().catch(e => cli.stream.error(e));
await ssh.journalctlLogs(string => cli.stream.printNoLN(string));
ssh.disconnect();
};