callbacks

module callbacks


function version_callback

version_callback(value: bool)None

Prints the current version when --version flag is added to a call.

Args:

  • value (bool): represents if the flag has been added or not to the call.

Raises:

  • Exit: exit the CLI execution


function debug_callback

debug_callback(_, value: bool)

If a call adds the --debug flag debugging mode is activated for external requests and API Clients.

Args:

  • _ (type): discarded value

  • value (bool): represents if the flag has been added to the call or not

Returns:

  • bool: pass the value back so it can be used in the clients

Last updated