@google/clasp
Version:
Develop Apps Script Projects locally
13 lines (12 loc) • 654 B
JavaScript
import { Command } from 'commander';
import { intl } from '../intl.js';
import { assertGcpProjectConfigured, isInteractive, maybePromptForProjectId } from './utils.js';
export const command = new Command('setup-logs').description('Setup Cloud Logging').action(async function () {
const clasp = this.opts().clasp;
if (!clasp.project.projectId && isInteractive()) {
await maybePromptForProjectId(clasp);
}
assertGcpProjectConfigured(clasp);
const successMessage = intl.formatMessage({ id: "mrsf6I", defaultMessage: [{ type: 0, value: "Script logs are now available in Cloud Logging." }] });
console.log(successMessage);
});