Blender V5.3
BKE_blender_cli_command.hh File Reference

Blender CLI Generic --command Support. More...

#include "BLI_utility_mixins.hh"
#include <memory>
#include <string>

Go to the source code of this file.

Classes

class  blender::CommandHandler

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Public API
void blender::BKE_blender_cli_command_register (std::unique_ptr< CommandHandler > cmd)
bool blender::BKE_blender_cli_command_unregister (CommandHandler *cmd)
int blender::BKE_blender_cli_command_exec (struct bContext *C, const char *id, const int argc, const char **argv)
void blender::BKE_blender_cli_command_print_help ()
void blender::BKE_blender_cli_command_free_all ()

Detailed Description

Blender CLI Generic --command Support.

Note
all registered commands must print help to the STDOUT & exit with a zero exit-code when --help is passed in as the first argument to a command.

Definition in file BKE_blender_cli_command.hh.