SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

CLI - Preserve comments when mutating the config file

Open bfops opened this issue 1 year ago • 0 comments

Background

We currently parse, update, and write out the entire config file whenever the CLI is mutating the file. This has the side effect of removing any comments.

We would like to preserve a user's manual edits, including comments, whenever possible.

Definition of "Done"

  • We use toml_edit or some similar crate in order to apply edits to the spacetime config file.
  • When the CLI mutates the config, user comments are preserved.

bfops avatar Oct 02 '24 21:10 bfops