lib/command/server/config.js
function set(req, res) {
  var key = '' + req.args[0]
    , value = req.args[1];

  // already validated the config key/value so should be ok
  // to update the in-memory config, some config verification
  // methods perform side-effects, eg: dir
  this.conf.set(key, value);
  res.send(null, Constants.OK);
  if(key === ConfigKey.DIR) {
    this.log.notice('cwd: %s', process.cwd());
  }
}
function set(req, res) {
  var key = '' + req.args[0]
    , value = req.args[1];

  // already validated the config key/value so should be ok
  // to update the in-memory config, some config verification
  // methods perform side-effects, eg: dir
  this.conf.set(key, value);
  res.send(null, Constants.OK);
  if(key === ConfigKey.DIR) {
    this.log.notice('cwd: %s', process.cwd());
  }
}
function set ( req , res ) { var key = '' + req . args [ 0 ] , value = req . args [ 1 ] ; // already validated the config key/value so should be ok // to update the in-memory config, some config verification // methods perform side-effects, eg: dir this . conf . set ( key , value ) ; res . send ( null , Constants . OK ) ; if ( key === ConfigKey . DIR ) { this . log . notice ( 'cwd: %s' , process . cwd ( ) ) ; } }
Respond to the SET subcommand.
Respond to the SET subcommand .