Skip to content

hostd: CLI argument parsing and configuration #110

@dougborg

Description

@dougborg

Summary

Add proper CLI argument parsing to hostd using clap, replacing the current hardcoded defaults.

Arguments

  • --listen <addr:port> — enable TCP listener
  • --log-dir <path> — enable file logging
  • --notify — enable desktop notifications
  • --rssi <threshold> — minimum RSSI (default: -80)
  • --no-ble / --no-wifi — disable specific scan types
  • --signatures <path> — load custom signature file (relates to feat: runtime signature loading and update protocol #14)
  • --verbose / -v — increase log verbosity
  • --json — output structured logs (for systemd journal)

Dependencies

  • clap = { version = "4", features = ["derive"] }

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthostdHost daemon (Mac/Linux)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions