tarlatan
    Preparing search index...

    Function decodedConfiguration

    • Reads the configuration at configPath and settles the ledger's directory (environment supplies HOME for the default). Returns the configuration and its layout as written, unresolved and unchecked. Reads only. Fails with FileNotUtf8 when the file is not UTF-8, which is never read with U+FFFD in place of its bytes (focused review finding 3), and with ConfigUndecodable, among others.

      Parameters

      • configPath: string
      • environment: Readonly<Record<string, string | undefined>>

      Returns Effect<
          {
              config: TarlatanConfig;
              layout: {
                  ledgerDir: string;
                  ownerCheckout: string;
                  stateDir: string;
                  supervisor: string;
              };
          },
          StateFileFailed
          | FileNotUtf8
          | ConfigUndecodable,
          never,
      >