heroku
Version:
CLI to interact with Heroku
28 lines (27 loc) • 1.12 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const setter_1 = require("../../../../lib/pg/setter");
const tsheredoc_1 = require("tsheredoc");
const nls_1 = require("../../../../nls");
class LogFormat extends setter_1.PGSettingsCommand {
constructor() {
super(...arguments);
this.settingKey = 'auto_explain.log_format';
}
explain(setting) {
return `Auto explain log output will log in ${setting.value} format.`;
}
convertValue(val) {
return val;
}
}
exports.default = LogFormat;
LogFormat.description = (0, tsheredoc_1.default)(`
selects the EXPLAIN output format to be used
The allowed values are text, xml, json, and yaml. The default is text.
`);
LogFormat.args = {
database: core_1.Args.string({ description: `${(0, nls_1.nls)('pg:database:arg:description')} ${(0, nls_1.nls)('pg:database:arg:description:default:suffix')}` }),
value: core_1.Args.string({ options: ['text', 'json', 'yaml', 'xml'], description: 'format of the log output\n<options: text|json|yaml|xml>' }),
};
;