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