hx config init [--project] [--force] writes a fully commented sample config to ~/.hx/config.toml ($HX_HOME), or with --project to .hx/config.toml. It refuses to overwrite an existing file unless --force is given.
The sample (crates/hx-cli/src/config.sample.toml, embedded with include_str!) has every key: top-level settings, [openai_compat], [lsp], [[lsp.servers]] and [[extensions]]. Each line shows the default or an example.
Test sample_config_parses parses the sample once as-is and once with every # prefix stripped, using the real Config (deny_unknown_fields). A renamed or missing key, or a wrong type, fails the test, so the sample stays in sync with Config. A newly added Config field is not caught automatically.
Checked by hand: first run writes the file, second run errors, --force overwrites. README links the command. tests/all.sh green.
`hx config init [--project] [--force]` writes a fully commented sample config to `~/.hx/config.toml` (`$HX_HOME`), or with `--project` to `.hx/config.toml`. It refuses to overwrite an existing file unless `--force` is given.
The sample (`crates/hx-cli/src/config.sample.toml`, embedded with `include_str!`) has every key: top-level settings, `[openai_compat]`, `[lsp]`, `[[lsp.servers]]` and `[[extensions]]`. Each line shows the default or an example.
Test `sample_config_parses` parses the sample once as-is and once with every `# ` prefix stripped, using the real `Config` (`deny_unknown_fields`). A renamed or missing key, or a wrong type, fails the test, so the sample stays in sync with `Config`. A newly added `Config` field is not caught automatically.
Checked by hand: first run writes the file, second run errors, `--force` overwrites. README links the command. `tests/all.sh` green.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
hx config init [--project] [--force]writes a fully commented sample config to~/.hx/config.toml($HX_HOME), or with--projectto.hx/config.toml. It refuses to overwrite an existing file unless--forceis given.The sample (
crates/hx-cli/src/config.sample.toml, embedded withinclude_str!) has every key: top-level settings,[openai_compat],[lsp],[[lsp.servers]]and[[extensions]]. Each line shows the default or an example.Test
sample_config_parsesparses the sample once as-is and once with every#prefix stripped, using the realConfig(deny_unknown_fields). A renamed or missing key, or a wrong type, fails the test, so the sample stays in sync withConfig. A newly addedConfigfield is not caught automatically.Checked by hand: first run writes the file, second run errors,
--forceoverwrites. README links the command.tests/all.shgreen.