Class ScanCliCommand

Namespace
Kuestenlogik.Bowire.Security.Scanner.Cli
Assembly
Kuestenlogik.Bowire.Security.Scanner.dll

Discoverable CLI contribution for bowire scan. The Tool project's BowireCli picks this up via BowireCliCommandRegistry's assembly scan and attaches the built command to its root — no hard ProjectReference / no manual registration in the Tool wiring required.

Public so the assembly-scan registry can Activator.CreateInstance it. Has no constructor parameters by design — CLI-plugin contracts stay zero-config to keep the registry mechanism trivial.

public sealed class ScanCliCommand : IBowireCliCommand
Inheritance
ScanCliCommand
Implements
Inherited Members

Constructors

ScanCliCommand()

public ScanCliCommand()

Properties

Id

Stable identifier for this subcommand — used by the --disable-cli-command <id> flag so operators can skip a contribution at startup. Convention: the subcommand verb ("scan", "fuzz", "jwt", …) so it matches what the user types.

public string Id { get; }

Property Value

string

Methods

Build()

Build a Command ready to attach to the root command. Invoked once during CLI bootstrap; the returned command is owned by the root and may not survive a process restart.

public Command Build()

Returns

Command

Build(IConfiguration?)

Build the command with the CLI's configuration (appsettings, BOWIRE_ environment variables, mapped flags) so a contributed command can read its settings the same way the built-in commands do (#881). The CLI calls this overload; the default ignores the configuration and calls Build().

public Command Build(IConfiguration? configuration)

Parameters

configuration IConfiguration

Returns

Command

Remarks

Reads the scan's configuration-only settings — today the Nuclei limits under Bowire:Security:Nuclei (#881) — from the CLI's configuration (appsettings, BOWIRE_ env vars).