whole_func_string: function(platform, commands) {
      this.platform = platform;
      this.commands = {};
      this.commmandKeyBinding = {};
  
      this.addCommands(commands);
      
      this.setDefaultHandler("exec", function(e) {
          return e.command.exec(e.editor, e.args || {});
      });
  }
func_code_string: function(platform, commands) {
      this.platform = platform;
      this.commands = {};
      this.commmandKeyBinding = {};
  
      this.addCommands(commands);
      
      this.setDefaultHandler("exec", function(e) {
          return e.command.exec(e.editor, e.args || {});
      });
  }
func_documentation_string: class CommandManager
  
  
  
  
   
  new CommandManager(platform, commands)
  - platform (String): Identifier for the platform; must be either `'mac'` or `'win'`
  - commands (Array): A list of commands
  
  TODO