Skip to content

Add diff Command for Configuration Comparison #9

@jtdub

Description

@jtdub

Problem

Users need to mentally piece together what changes will be made from remediation output. A visual diff would make it easier to review changes before applying them.

Proposed Solution

Add a new "diff" command showing unified or side-by-side diff between running and intended configs.

Options

  • --format unified|side-by-side|context
  • --context N (lines of context)
  • --color/--no-color

Use Cases

  • Code review of configuration changes
  • Change approval workflows
  • Documentation of planned changes
  • Quick sanity check before remediation

Acceptance Criteria

  • diff command implemented
  • Unified diff format works
  • Side-by-side format works
  • Color output supported
  • Documentation added
  • Tests added

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions