Skip to content

Commit b3ed002

Browse files
committed
fix: change binary naming in qchat to q
1 parent d1552a6 commit b3ed002

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ use crate::mcp_client::{
160160
use crate::platform::Context;
161161
use crate::telemetry::TelemetryThread;
162162
use crate::telemetry::core::ToolUseEventBuilder;
163-
use crate::util::CHAT_BINARY_NAME;
163+
use crate::util::CLI_BINARY_NAME;
164164

165165
/// Help text for the compact command
166166
fn compact_help_text() -> String {
@@ -324,7 +324,7 @@ pub async fn chat(
324324
if !crate::util::system_info::in_cloudshell() && !crate::auth::is_logged_in(database).await {
325325
bail!(
326326
"You are not logged in, please log in with {}",
327-
format!("{CHAT_BINARY_NAME} login").bold()
327+
format!("{CLI_BINARY_NAME} login").bold()
328328
);
329329
}
330330

crates/chat-cli/src/cli/user.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ use crate::util::spinner::{
4949
};
5050
use crate::util::system_info::is_remote;
5151
use crate::util::{
52-
CHAT_BINARY_NAME,
52+
CLI_BINARY_NAME,
5353
PRODUCT_NAME,
5454
choose,
5555
input,
@@ -123,7 +123,7 @@ impl UserSubcommand {
123123
if crate::auth::is_logged_in(database).await {
124124
eyre::bail!(
125125
"Already logged in, please logout with {} first",
126-
format!("{CHAT_BINARY_NAME} logout").magenta()
126+
format!("{CLI_BINARY_NAME} logout").magenta()
127127
);
128128
}
129129

@@ -137,7 +137,7 @@ impl UserSubcommand {
137137
println!("You are now logged out");
138138
println!(
139139
"Run {} to log back in to {PRODUCT_NAME}",
140-
format!("{CHAT_BINARY_NAME} login").magenta()
140+
format!("{CLI_BINARY_NAME} login").magenta()
141141
);
142142
Ok(ExitCode::SUCCESS)
143143
},
@@ -189,7 +189,7 @@ impl UserSubcommand {
189189
if !crate::util::system_info::in_cloudshell() && !crate::auth::is_logged_in(database).await {
190190
bail!(
191191
"You are not logged in, please log in with {}",
192-
format!("{CHAT_BINARY_NAME} login").bold()
192+
format!("{CLI_BINARY_NAME} login").bold()
193193
);
194194
}
195195

crates/chat-cli/src/util/consts.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#[cfg(windows)]
22
pub const APP_PROCESS_NAME: &str = "q_desktop.exe";
33

4+
/// TODO(brandonskiser): revert back to "q" for prompting login after standalone releases.
5+
pub const CLI_BINARY_NAME: &str = "q";
6+
#[allow(dead_code)]
47
pub const CHAT_BINARY_NAME: &str = "qchat";
58

69
pub const PRODUCT_NAME: &str = "Amazon Q";

0 commit comments

Comments
 (0)