Skip to content

[BUG]: config new returns error after creating a new config #1042

Closed
@garrytrinder

Description

@garrytrinder

Description

devproxy config new is a command that can create an empty configuration file.

Expected behaviour

If a file already exists, the command should gracefully fail, by saying that a file already exists or create a new file with an different name, for example, devproxyrc.json > devproxyrc1.json

Actual behaviour

Image

Steps to reproduce

  1. devproxy config new
  2. devproxy config new

Dev Proxy Version

v0.25.0

Operating system (environment)

macOS

Shell

zsh

Configuration file

N\A

Additional Info

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions