Skip to content

Commit 4f68927

Browse files
fix: migrations logic to appropriately handle all migrations (#1862)
* fix: change binary naming in qchat to q * fix: migrations bug * chore: increment version * binary name
1 parent d1552a6 commit 4f68927

File tree

9 files changed

+151
-63
lines changed

9 files changed

+151
-63
lines changed

Cargo.lock

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors = [
1919
edition = "2021"
2020
homepage = "https://aws.amazon.com/q/"
2121
publish = false
22-
version = "1.10.0"
22+
version = "1.10.1"
2323
license = "MIT OR Apache-2.0"
2424

2525
[workspace.dependencies]

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

0 commit comments

Comments
 (0)