logs
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = {
|
||||
description: 'Tail a log in cloudwatch (l) (WIP)',
|
||||
hidden: false,
|
||||
run: async (toolbox: GluegunMenuToolbox) => {
|
||||
const { system, strings } = toolbox;
|
||||
const { print, system, strings } = toolbox;
|
||||
|
||||
const groups = JSON.parse(
|
||||
strings.trim(await system.run(`aws logs describe-log-groups`))
|
||||
@@ -40,8 +40,7 @@ module.exports = {
|
||||
]);
|
||||
child.stdout.setEncoding('utf8');
|
||||
child.stdout.on('data', function(data) {
|
||||
// Here is where the output goes
|
||||
console.log(data);
|
||||
print.info(data);
|
||||
});
|
||||
child.stderr.on('data', data => {
|
||||
console.error(`stderr: ${data}`);
|
||||
|
||||
Reference in New Issue
Block a user