-
Notifications
You must be signed in to change notification settings - Fork 80
Labels
Description
Summary
devproxy config new currently defaults to creating a devproxyrc.json file and only generates JSON configs. With YAML config support being added (#1491), the CLI should also support creating YAML-based configuration files.
Expected behavior
devproxy config new devproxyrc.yamlshould create a valid YAML config file- The format should be inferred from the file extension (
.yaml/.yml= YAML,.json/.jsonc= JSON) - The default should remain
devproxyrc.jsonfor backward compatibility
Current behavior
devproxy config new only generates JSON configs regardless of the filename extension. It downloads a JSON snippet from the snippets URL and writes it as-is.
Additional context
Discovered while testing PR #1491 (YAML config support).
Reactions are currently unavailable