@samatawy/rules
    Preparing search index...

    Interface ICommandAction

    Interface representing an action to execute a command, which is created when a rule with a command action is parsed. The CommandHandler is responsible for managing the execution of these command actions, both immediate and deferred.

    interface ICommandAction {
        hash: string;
        keyword: string;
        arguments: Record<string, any>;
        immediate: boolean;
        result?: any;
        error?: any;
    }
    Index

    Properties

    hash: string

    A unique hash for this action, used for tracking and ensuring that the same action is not executed multiple times. This can be generated based on the command keyword and arguments, or using any other method that guarantees uniqueness for each distinct action.

    keyword: string

    The keyword of the command to execute.

    arguments: Record<string, any>

    The parsed arguments to pass to the command when executing it.

    immediate: boolean

    Indicates whether the command should be executed immediately.

    result?: any

    The result of the command execution, if any.

    error?: any

    The error encountered during command execution, if any.