MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / print_settings_plain

Function print_settings_plain

crates/chat-cli/src/cli/settings.rs:138–148  ·  view source on GitHub ↗

Print settings list in plain text format with colors

(settings: &[SettingInfo])

Source from the content-addressed store, hash-verified

136
137/// Print settings list in plain text format with colors
138fn print_settings_plain(settings: &[SettingInfo]) {
139 for setting in settings {
140 println!("{}", setting.key.as_str().cyan().bold());
141 println!(" Description: {}", setting.description);
142 match &setting.current_value {
143 Some(value) => println!(" Current: {}", value.to_string().green()),
144 None => println!(" Current: {}", "not set".dim()),
145 }
146 println!();
147 }
148}
149
150/// Print settings list in JSON or JSON Pretty format
151fn print_settings_json(settings: &[SettingInfo], pretty: bool) -> Result<()> {

Callers 1

print_all_settingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected