@@ -299,17 +299,22 @@ func promptEnvConfig() (*docker.EnvConfig, error) {
299299 // Prompt for Root API Bearer Token
300300 var rootAPIBearerToken string
301301 if err := survey .AskOne (& survey.Input {
302- Message : "4. Pass a string to build Acontext token (format: sk-ac-xxxx) :" ,
302+ Message : "4. Pass a string to build Acontext token:" ,
303303 Default : "your-root-api-bearer-token" ,
304304 Help : "'sk-ac-' prefix will be added automatically. Enter token part only (xxxx)." ,
305305 }, & rootAPIBearerToken ); err != nil {
306306 return nil , fmt .Errorf ("failed to get Root API Bearer Token: %w" , err )
307307 }
308308
309+ // Build complete API key and display it
310+ completeAPIKey := fmt .Sprintf ("sk-ac-%s" , rootAPIBearerToken )
311+ // Use ANSI color codes: \033[1m = bold, \033[93m = bright yellow, \033[0m = reset
312+ fmt .Printf (" 🔑 \033 [1m\033 [93mACONTEXT_API_KEY=\" %s\" \033 [0m\n " , completeAPIKey )
313+
309314 // Prompt for Core Config YAML File (optional)
310315 var coreConfigYAMLFile string
311316 if err := survey .AskOne (& survey.Input {
312- Message : "5. Configure Acontext by Passing an existing config.yaml (optional):" ,
317+ Message : "5. Configure Acontext by passing an existing config.yaml (optional):" ,
313318 Default : "./config.yaml" ,
314319 Help : "Path to config.yaml file. Leave empty to use env vars only." ,
315320 }, & coreConfigYAMLFile ); err != nil {
0 commit comments