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

Function print_all_settings

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

Print all available settings

(os: &Os, format: OutputFormat)

Source from the content-addressed store, hash-verified

172
173/// Print all available settings
174fn print_all_settings(os: &Os, format: OutputFormat) -> Result<()> {
175 let settings = collect_settings(os);
176
177 match format {
178 OutputFormat::Plain => {
179 print_settings_plain(&settings);
180 Ok(())
181 },
182 OutputFormat::Json => print_settings_json(&settings, false),
183 OutputFormat::JsonPretty => print_settings_json(&settings, true),
184 }
185}
186
187impl SettingsArgs {
188 pub async fn execute(&self, os: &mut Os) -> Result<ExitCode> {

Callers 1

executeMethod · 0.85

Calls 3

collect_settingsFunction · 0.85
print_settings_plainFunction · 0.85
print_settings_jsonFunction · 0.85

Tested by

no test coverage detected