natemcmaster / dotnet-serve

Simple command-line HTTPS server for the .NET Core CLI

Home Page:https://nuget.org/packages/dotnet-serve/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for config as a file

natemcmaster opened this issue · comments

Add support for configuring dotnet-serve options via file, so I don't have to keep remembering all the command line options I want to use.

Lookup:

  1. find file in cwd
  2. also lookup file in $HOME

TBD:
format - JSON? provides nice intellisense in vscode
filename? .dotnetserverc, serve.json dotnet-serve.json
schema

Format: I vote for JSON.
Filename: I vote for dotnet-serve.json.

Closing. There appears to be little demand for this. It's a cool idea, but I have no plans to implement it.

As the number of options grows, I think this will become necessary.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please comment if you believe this should remain open, otherwise it will be closed in 7 days.

Re-opening. I think this is worth doing, but may not have time myself. I think stale-bot was too aggressive here in closing this issue.

Is it not just easier to write a simple powershell script or bash script to start the server with the correct arguments?