@@ -79,6 +79,22 @@ use crate::cli::chat::parse::{
7979} ;
8080use crate :: util:: region_check;
8181
82+ const WELCOME_TEXT : & str = color_print:: cstr! { "
83+
84+ <em>Hi, I'm <magenta,em>Amazon Q</magenta,em>. Ask me anything.</em>
85+
86+ <cyan!>Things to try</cyan!>
87+ • Fix the build failures in this project.
88+ • List my s3 buckets in us-west-2.
89+ • Write unit tests for my application.
90+ • Help me understand my git status
91+
92+ <em>/help</em> <black!>Show the help dialogue</black!>
93+ <em>/quit</em> <black!>Quit the application</black!>
94+
95+
96+ " } ;
97+
8298const HELP_TEXT : & str = color_print:: cstr! { "
8399
84100<magenta,em>q</magenta,em> (Amazon Q Chat)
@@ -272,19 +288,7 @@ where
272288{
273289 async fn try_chat ( & mut self ) -> Result < ( ) > {
274290 if self . interactive {
275- execute ! (
276- self . output,
277- style:: Print ( color_print:: cstr! { "
278- Hi, I'm <g>Amazon Q</g>, your AI Developer Assistant.
279- \n <yellow>Try asking me:</yellow>\n \n \
280- <green>• What tools do you have?\n \
281- • Fix the build failures in this project\n \
282- • Write unit tests and markdown docs for my application\n \
283- • List the s3 buckets I have in us-west-2</green>
284- \n <dim>Type <green>/exit</green> to quit</dim>\n
285- "
286- } )
287- ) ?;
291+ execute ! ( self . output, style:: Print ( WELCOME_TEXT ) ) ?;
288292 }
289293
290294 let mut ctrl_c_stream = signal ( SignalKind :: interrupt ( ) ) ?;
0 commit comments