Domain Detective

API Reference

Class

ExportableAsyncPSCmdlet

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Implements
IDisposable
Modifiers abstract

Base cmdlet providing common -Export* parameters and helpers.

Inheritance

Methods

ExportNotImplementedAsync(System.String cmdletName) #

Emits a warning indicating export is not implemented.

Parameters

cmdletName System.String required
Name of the cmdlet requesting export.

Returns

A completed task.

GetRequestedFormatsOrDefault(DomainDetective.Reports.ReportFormat arg1) #

Returns requested formats or a single fallback format.

Parameters

arg1 DomainDetective.Reports.ReportFormat required
IsExportRequested() #

Determines whether an export was requested.

Returns

true if export options were specified; otherwise, false.

ResolveOutPathForFormat(System.String arg1, System.String arg2, System.String arg3, DomainDetective.Reports.ReportFormat arg4, System.Collections.Generic.IReadOnlyList{DomainDetective.Reports.ReportFormat} arg5) #

Computes output path for a specific format, honoring explicit file paths when multiple formats were requested.

Parameters

arg1 System.String required
arg2 System.String required
arg3 System.String required
arg4 DomainDetective.Reports.ReportFormat required
arg5 System.Collections.Generic.IReadOnlyList{DomainDetective.Reports.ReportFormat} required
TryOpenReport(System.String path) #

Attempts to open the specified report file.

Parameters

path System.String required
Path to the report.

Properties

public ReportFormat[] ExportFormat { get; set; } #
Parameter(Mandatory = false) Alias(["Report"]) ValidateSet(["Html", "Json", "Word", "Excel", "Markdown", "MarkdownHtml"], IgnoreCase = true)

Desired export format(s). Accepts one or many values.

public String ExportPath { get; set; } #
Parameter(Mandatory = false)

Output file path for export.

public SwitchParameter OpenInBrowser { get; set; } #
Parameter(Mandatory = false) Alias(["OpenReport"])

Open export in browser when applicable.

public SwitchParameter ExportArtifacts { get; set; } #
Parameter(Mandatory = false) Alias(["Artifacts"])

Emit artifacts (scan.json, metrics.json, progress.jsonl).

public String ArtifactsDirectory { get; set; } #
Parameter(Mandatory = false) Alias(["ArtifactsPath"])

Destination directory for artifacts when emitted.

{{ include "footer" }}