Skip to content

Conversation

@pepa65
Copy link

@pepa65 pepa65 commented Oct 1, 2025

Rationale: It is useful to have a key-value list in YAML format because it reflects all the database keys and their values well (unlike TOML) and accurately. The API already offers JSON, but YAML is even cleaner, and more readable for multiline values.

Feat: Option to have stalwart-cli server list-config output in sorted YAML.

Justification: Very limited scope, outside of core, small change: add flag -y|--yaml to get stalwart-cli server list-config to output in sorted YAML format to stdout:

  • In crates/cli/src/modules/cli.rs add the yaml flag plus short description for help.
  • In crates/cli/src/modules/database.rs add 15 lines to sort by key and format the output to YAML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant