dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Feat: CLI Settings

Open DogeDark opened this issue 1 year ago • 1 comments

Creates a setting system with 3 priorities:

  1. CLI Flags (e.g. --open or --hot-reload)
  2. Project-level config (e.g. Settings in Dioxus.toml)
  3. Global settings stored in local data.

Additions

  • dx config set_global command for always-hot-reload and always-open-browser
  • [cli_settings] key in Dioxus.toml with fields always_hot_reload and always_open_browser
  • Storage of global settings in a toml.

This PR is slightly breaking with changes to the CLI commands and the hot reload setting moved from [application] to [cli_settings].

DogeDark avatar May 17 '24 04:05 DogeDark

Looks like the clippy issue is fixed in Autoformat rsx PR. This is ready for review.

DogeDark avatar May 17 '24 17:05 DogeDark