mirror of
https://github.com/harivansh-afk/deskctl.git
synced 2026-04-17 10:02:23 +00:00
change client bin name
This commit is contained in:
parent
2a8b51b4f5
commit
c907e800af
1 changed files with 12 additions and 1 deletions
|
|
@ -7,7 +7,12 @@ use std::path::PathBuf;
|
||||||
use crate::core::protocol::{Request, Response};
|
use crate::core::protocol::{Request, Response};
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(name = "deskctl", version, about = "Desktop control CLI for AI agents")]
|
#[command(
|
||||||
|
name = "deskctl",
|
||||||
|
bin_name = "deskctl",
|
||||||
|
version,
|
||||||
|
about = "Desktop control CLI for AI agents"
|
||||||
|
)]
|
||||||
pub struct App {
|
pub struct App {
|
||||||
#[command(flatten)]
|
#[command(flatten)]
|
||||||
pub global: GlobalOpts,
|
pub global: GlobalOpts,
|
||||||
|
|
@ -988,6 +993,12 @@ mod tests {
|
||||||
assert!(help.contains("deskctl snapshot --annotate"));
|
assert!(help.contains("deskctl snapshot --annotate"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn root_help_uses_public_bin_name() {
|
||||||
|
let help = App::command().render_help().to_string();
|
||||||
|
assert!(help.contains("Usage: deskctl [OPTIONS] <COMMAND>"));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn window_listing_text_includes_window_ids() {
|
fn window_listing_text_includes_window_ids() {
|
||||||
let lines = render_success_lines(
|
let lines = render_success_lines(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue