command facts

class reemote.facts.command.get_caller.Get_caller[source]

Bases: object

A reemote operation that returns the instance that initiated the command.

This class is designed to be used within the reemote framework to allow a script to get a reference to the specific object that is currently executing. It is useful for introspection or for passing the object instance to other functions.

The operation works by yielding a local reemote.command.Command that is constructed with the instance itself as the caller argument. An internal callback then returns this caller as the result of the command’s execution.

class reemote.facts.command.get_command.Get_command[source]

Bases: object

A command-like object used to retrieve the underlying Command instance.

This class provides a mechanism for introspecting the command execution framework. When its execute method is used, it yields a special Command object configured to run locally.

The framework processes this yielded command, and the associated callback, _get_command_callback, simply returns the command object it receives as an argument. This allows the caller of execute to obtain a direct reference to the Command instance that was created and processed.

class reemote.facts.command.get_cp.Get_cp[source]

Bases: object

A command-like object to retrieve the current command processor.

This class is designed to be used within the reemote command execution framework. When its execute method is called, it yields a special local command. The framework intercepts this command and, via a callback, provides the instance of the currently running command processor (cp).

This is useful for other commands that need to introspect or interact with the command processor that is executing them.