MCPcopy Index your code
hub / github.com/Unitech/pm2 / interactiveConfigEdit

Function interactiveConfigEdit

lib/API/Configuration.js:188–197  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

186};
187
188function interactiveConfigEdit(cb) {
189 UX.helpers.openEditor(cst.PM2_MODULE_CONF_FILE, function(err, data) {
190 Common.printOut(chalk.bold('Module configuration (%s) edited.'), cst.PM2_MODULE_CONF_FILE);
191 Common.printOut(chalk.bold('To take changes into account, please restart module related.'), cst.PM2_MODULE_CONF_FILE);
192 if (err)
193 return cb(Common.retErr(err));
194 return cb(null, {success:true});
195 });
196
197}
198
199/**
200 * Configuration

Callers 1

Configuration.jsFile · 0.85

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…