Skip to content

cli: add Windows clipboard support for phantom reveal --copy #6

@MasonStation

Description

@MasonStation

Clipboard support in reveal only implements pbcopy (macOS) and xclip/xsel (Linux). Windows users get an error.

Location

  • phantom-cli/src/commands/reveal.rs:81-116

Fix

Two options:

Option A (minimal): Add a #[cfg(windows)] branch shelling out to clip.exe (present on all Windows 10+ installs), piping the secret via stdin.

Option B (recommended): Replace all three platform branches with the arboard crate — pure Rust, cross-platform, also makes #8 (shell-free clipboard auto-clear) trivial.

Severity

Functional gap — compiles, feature unavailable on Windows.

Tracker: #1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwindowsWindows platform support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions