refactor: remove remote sequence CLI command
Collapse remote input to `tvctl remote key` so single-key and multi-key usage share one public command while keeping the paced daemon path underneath.
This commit is contained in:
@@ -169,8 +169,15 @@ pub struct DaemonStatus {
|
||||
pub socket: String,
|
||||
/// Whether the HTTP API is enabled.
|
||||
pub http_enabled: bool,
|
||||
/// The HTTP bind host.
|
||||
pub http_host: String,
|
||||
/// The HTTP bind port.
|
||||
pub http_port: u16,
|
||||
/// The number of known devices.
|
||||
pub device_count: usize,
|
||||
/// The current default device, if configured.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub default_device: Option<String>,
|
||||
}
|
||||
|
||||
/// Discovery results returned by the daemon.
|
||||
|
||||
@@ -218,7 +218,13 @@ async fn handle_request(
|
||||
pid: std::process::id(),
|
||||
socket: guard.paths.socket_file.display().to_string(),
|
||||
http_enabled: guard.config.daemon.http_enabled,
|
||||
http_host: guard.config.daemon.http_host.clone(),
|
||||
http_port: guard.config.daemon.http_port,
|
||||
device_count: guard.registry.devices.len(),
|
||||
default_device: guard
|
||||
.registry
|
||||
.default_device()
|
||||
.map(|device| device.name.clone()),
|
||||
}),
|
||||
false,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user