CommandRegistry* globalCommandRegistry() {
    static auto reg = new CommandRegistry();
    return reg;
}
CommandRegistry* globalCommandRegistry() {
    static auto reg = new CommandRegistry();
    return reg;
}