Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config new command to create new config file #975

Open
waldekmastykarz opened this issue Feb 4, 2025 · 1 comment
Open

Add config new command to create new config file #975

waldekmastykarz opened this issue Feb 4, 2025 · 1 comment
Labels
enhancement New feature or request needs peer review Issue needs review from other team members

Comments

@waldekmastykarz
Copy link
Collaborator

Add a new command named config new that creates a new config file in the current directory.

devproxy config new -n,--name [name]
  • if no file name specified, uses devproxyrc.json
  • if a file with the same name exists, adds a number until a unique name found, eg devproxyrc_2.json
  • proposed file contents:
{
  "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.18.0/rc.schema.json",
  "plugins": [
  ],
  "urlsToWatch": [
    "https://api.contoso.com/*"
  ],
  "logLevel": "information",
  "newVersionNotification": "stable"
}
@waldekmastykarz
Copy link
Collaborator Author

@microsoft/dev-proxy-maintainers do we cover it all? Anything else that we should consider?

@waldekmastykarz waldekmastykarz added enhancement New feature or request needs peer review Issue needs review from other team members labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs peer review Issue needs review from other team members
Projects
None yet
Development

No branches or pull requests

1 participant