finance-mgn - v1.4.1
    Preparing search index...

    Function mainFlow

    • Main flow of the application. This function orchestrates the entire process, including:

      • Fetching transactions from email attachments and APIs.
      • Cleaning and grouping transactions.
      • Labeling transactions using an LLM (if enabled).
      • Writing transactions to Google Sheets.
      • Performing cleanup operations.

      Parameters

      • args: Partial<Arguments<AppArguments>>

        The parsed command-line arguments.

        • withLabeling

          Whether to use LLM for labeling transactions.

        • environment

          The environment to run the application in (e.g., "development", "production").

        • actions

          The actions to perform (e.g., "mail", "fio", or both).

        • cleanup

          The cleanup mode (e.g., "sheets", "mail", or both).

      Returns Promise<never>

      Error If any required configuration is missing or an operation fails.