ManualTopic (config/cli_constants.py)

VulnClaw · vulnclaw/config/cli_constants.py · python · MIT
cli

Defines CLI manual topics and shared constants for command usage.

# Source: https://github.com/Netw0rkNoob/VulnClaw | License: MIT | Copyright 2026 UncleC
# Provided via justclaw.it.com; keep this notice with the code.
"""CLI shared data constants — extracted from cli/manual.py.

Moved here so that infrastructure-layer modules (e.g. skills/) can consume
CLI metadata without depending on the entry-layer cli/ package.

修改者: Nyaecho
修改时间: 2026-07-08
修改原因: 消除 V5 违规 — skills/flag_skills.py 反向依赖 cli/manual.py,
         将共享数据常量抽取到基础设施层 config/ 包中。
"""

from __future__ import annotations

from dataclasses import dataclass


@dataclass(frozen=True)
class ManualTopic:
    """A CLI manual topic or command."""

    name: str
    summary: str
    usage: str
    flags: tuple[tuple[str, str], ...] = ()
    notes: tuple[str, ...] = ()
    examples: tuple[str, ...] = ()


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key