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
+27-18Lines changed: 27 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,21 @@ pub mod error_messages {
24
24
pubmod ui_text {
25
25
usesuper::{
26
26
CLI_NAME,
27
+
PRODUCT_NAME,
27
28
StyledText,
28
29
};
29
30
30
31
/// Welcome text for small screens
31
32
pubfnsmall_screen_welcome() -> String{
32
-
format!("Welcome to {}!",StyledText::brand("Kiro"))
33
+
format!("Welcome to {}!",StyledText::brand(PRODUCT_NAME))
33
34
}
34
35
35
36
/// Changelog header text
36
37
pubfnchangelog_header() -> String{
37
-
format!("{}\n\n",StyledText::primary("✨ What's New in Kiro CLI"))
38
+
format!(
39
+
"{}\n\n",
40
+
StyledText::primary(&format!("✨ What's New in {PRODUCT_NAME} CLI"))
41
+
)
38
42
}
39
43
40
44
/// Trust all tools warning text
@@ -43,9 +47,9 @@ pub mod ui_text {
43
47
44
48
warning.push_str(&StyledText::success("All tools are now trusted ("));
45
49
warning.push_str(&StyledText::error("!"));
46
-
warning.push_str(&StyledText::success(
47
-
"). Kiro will execute tools without asking for confirmation.",
48
-
));
50
+
warning.push_str(&StyledText::success(&format!(
51
+
"). {PRODUCT_NAME} will execute tools without asking for confirmation.",
52
+
)));
49
53
warning.push_str("\nAgents can sometimes do unexpected things so understand the risks.");
50
54
warning.push_str("\n\nLearn more at https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-chat-security.html#command-line-chat-trustall-safety");
51
55
@@ -69,9 +73,9 @@ pub mod ui_text {
69
73
70
74
// MCP section
71
75
help.push('\n');
72
-
help.push_str(&StyledText::primary(
73
-
"💡 Did you know, You can now configure Kiro to use MCP servers. Learn how at https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/qdev-mcp.html",
74
-
));
76
+
help.push_str(&StyledText::primary(&format!(
77
+
"💡 Did you know, You can now configure {PRODUCT_NAME} to use MCP servers. Learn how at https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/qdev-mcp.html",
78
+
)));
75
79
76
80
// Shortcuts section
77
81
help.push_str("\n\n");
@@ -208,21 +212,25 @@ pub mod context_text {
208
212
209
213
/// Help text constants for CLI commands
210
214
pubmod help_text {
215
+
usesuper::PRODUCT_NAME;
216
+
211
217
/// Context command description
212
-
pubconstCONTEXT_DESCRIPTION:&str = "Subcommands for managing context rules and files in Kiro chat sessions";
218
+
pubfncontext_description() -> String{
219
+
format!("Subcommands for managing context rules and files in {PRODUCT_NAME} chat sessions")
220
+
}
213
221
214
222
/// Full context command long help text
215
223
pubfncontext_long_help() -> String{
216
-
format!("Context rules determine which files are included in your {} session.
224
+
format!("Context rules determine which files are included in your {PRODUCT_NAME} session.
217
225
They are derived from the current active agent.
218
-
The files matched by these rules provide {} with additional information
219
-
about your project or environment. Adding relevant files helps Kiro generate
226
+
The files matched by these rules provide {PRODUCT_NAME} with additional information
227
+
about your project or environment. Adding relevant files helps {PRODUCT_NAME} generate
220
228
more accurate and helpful responses.
221
229
222
230
Notes:
223
231
• You can add specific files or use glob patterns (e.g., \"*.py\", \"src/**/*.js\")
224
232
• Agent rules apply only to the current agent
225
-
• Context changes are NOT preserved between chat sessions. To make these changes permanent, edit the agent config file.",super::PRODUCT_NAME,super::PRODUCT_NAME)
233
+
• Context changes are NOT preserved between chat sessions. To make these changes permanent, edit the agent config file.")
0 commit comments