• Creates a standardized operation result (legacy function for backward compatibility)

    Type Parameters

    • T

    Parameters

    • operation: string

      Name of the operation

    • success: boolean

      Whether the operation was successful

    • Optionaldata: T

      Data to return (if successful)

    • Optionalerror: string

      Error message (if failed)

    • OptionalstartTime: number

      Start time for calculating execution time

    • OptionalfilesAffected: string[]

      List of files affected by the operation

    • OptionallinesProcessed: number

      Number of lines processed

    Returns OperationResult<T>

    Standardized OperationResult