You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/chat-cli/src/constants.rs
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -22,20 +22,14 @@ pub mod ui_text {
22
22
23
23
/// Changelog header text
24
24
pubfnchangelog_header() -> String{
25
-
format!(
26
-
"{}",
27
-
color_print::cstr! {"<magenta,bold>What's New in Amazon Q CLI</magenta,bold>\n\n"}
28
-
)
25
+
color_print::cstr! {"<magenta,bold>What's New in Amazon Q CLI</magenta,bold>\n\n"}.to_string()
29
26
}
30
27
31
28
/// Trust all tools warning text
32
29
pubfntrust_all_warning() -> String{
33
-
format!(
34
-
"{}",
35
-
color_print::cstr! {"<green!>All tools are now trusted (<red!>!</red!>). Amazon Q will execute tools <bold>without</bold> asking for confirmation.\
30
+
color_print::cstr! {"<green!>All tools are now trusted (<red!>!</red!>). Amazon Q will execute tools <bold>without</bold> asking for confirmation.\
36
31
\nAgents can sometimes do unexpected things so understand the risks.</green!>
37
-
\nLearn more at https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-chat-security.html#command-line-chat-trustall-safety"}
38
-
)
32
+
\nLearn more at https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-chat-security.html#command-line-chat-trustall-safety"}.to_string()
0 commit comments