@hubspot/cms-cli
Advanced tools
Comparing version 2.1.1-beta.3 to 2.1.1-beta.4
@@ -159,9 +159,7 @@ const readline = require('readline'); | ||
} else { | ||
logsResp = await getFunctionLogs(portalId, functionResp.id); | ||
logsResp = await getFunctionLogs(portalId, functionResp.id, options); | ||
} | ||
if (logsResp) { | ||
return outputLogs(logsResp, { | ||
compact, | ||
}); | ||
return outputLogs(logsResp, options); | ||
} | ||
@@ -175,17 +173,25 @@ }; | ||
}); | ||
yargs.option('latest', { | ||
alias: 'l', | ||
describe: 'retrieve most recent log only', | ||
type: 'boolean', | ||
}); | ||
yargs.option('compact', { | ||
alias: 'c', | ||
describe: 'output compact logs', | ||
type: 'boolean', | ||
}); | ||
yargs.option('follow', { | ||
alias: ['t', 'tail', 'f'], | ||
describe: 'follow logs', | ||
type: 'boolean', | ||
}); | ||
yargs | ||
.options({ | ||
latest: { | ||
alias: 'l', | ||
describe: 'retrieve most recent log only', | ||
type: 'boolean', | ||
}, | ||
compact: { | ||
describe: 'output compact logs', | ||
type: 'boolean', | ||
}, | ||
follow: { | ||
alias: ['t', 'tail', 'f'], | ||
describe: 'follow logs', | ||
type: 'boolean', | ||
}, | ||
limit: { | ||
alias: ['limit', 'n', 'max-count'], | ||
describe: 'limit the number of logs to output', | ||
type: 'number', | ||
}, | ||
}) | ||
.conflicts('follow', 'limit'); | ||
@@ -192,0 +198,0 @@ addConfigOptions(yargs, true); |
{ | ||
"name": "@hubspot/cms-cli", | ||
"version": "2.1.1-beta.3", | ||
"version": "2.1.1-beta.4", | ||
"description": "CLI for interacting with the HubSpot CMS", | ||
@@ -11,3 +11,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@hubspot/cms-lib": "^2.1.0", | ||
"@hubspot/cms-lib": "^2.1.1-beta.4", | ||
"chalk": "^4.1.0", | ||
@@ -35,3 +35,3 @@ "commander": "^2.16.0", | ||
}, | ||
"gitHead": "5882397b0f6278a55c9f08a1f78250307eef50eb" | ||
"gitHead": "4d71b65749294b3e3825b0d96e31d943adcd62ee" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
324
3520
30
122608
67