igcv3 - v1.1.0
    Preparing search index...

    Function resolveOutputPath

    • Resolve output path from --out option.

      Behavior:

      • If --out is a directory (exists as dir, ends with /, or has no extension): → Use defaultFilename in that directory
      • If --out is a file path: → Use it directly (ensure extension if specified)
      • If --out is not provided: → Use defaultDir + defaultFilename

      Parameters

      Returns Promise<OutputPathResult>

      // Directory input
      await resolveOutputPath({ out: './certs/', defaultFilename: 'cert.pem' })
      // → { filePath: './certs/cert.pem', directory: './certs', filename: 'cert.pem' }

      // File path input
      await resolveOutputPath({ out: './certs/my-cert.pem', defaultFilename: 'cert.pem' })
      // → { filePath: './certs/my-cert.pem', directory: './certs', filename: 'my-cert.pem' }

      // No input (use defaults)
      await resolveOutputPath({ defaultDir: './certs', defaultFilename: 'cert.pem' })
      // → { filePath: './certs/cert.pem', directory: './certs', filename: 'cert.pem' }