File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ use crate::mcp_client::{
160160use crate :: platform:: Context ;
161161use crate :: telemetry:: TelemetryThread ;
162162use 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
166166fn 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
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ use crate::util::spinner::{
4949} ;
5050use crate :: util:: system_info:: is_remote;
5151use 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
Original file line number Diff line number Diff line change 11#[ cfg( windows) ]
22pub 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) ]
47pub const CHAT_BINARY_NAME : & str = "qchat" ;
58
69pub const PRODUCT_NAME : & str = "Amazon Q" ;
You can’t perform that action at this time.
0 commit comments