src/edit/command.js
// property) to update some properties in the command by that name.
property) to update some properties in the command by that name.
property ) to update some properties in the command by that name .
update(update) {
    return new CommandSet(this, commands => {
      for (let name in update) {
        let spec = update[name]
        if (!spec) {
          delete commands[name]
        } else if (spec.run) {
          commands[name] = new Command(spec, null, name)
        } else {
          let known = commands[name]
          if (known)
            commands[name] = new Command(copyObj(spec, copyObj(known.spec)), known.self, name)
        }
      }
    })
  }
update ( update ) { return new CommandSet ( this , commands => { for ( let name in update ) { let spec = update [ name ] if ( ! spec ) { delete commands [ name ] } else if ( spec . run ) { commands [ name ] = new Command ( spec , null , name ) } else { let known = commands [ name ] if ( known ) commands [ name ] = new Command ( copyObj ( spec , copyObj ( known . spec ) ) , known . self , name ) } } } ) }
property) to update some properties in the command by that name.
property ) to update some properties in the command by that name .