spacecookie icon indicating copy to clipboard operation
spacecookie copied to clipboard

Mode for no config file/all defaults for testing

Open hyperrealgopher opened this issue 4 years ago • 4 comments

Feature request.

It would be great if I could arbitrarily launch spacecookie when I build random gopherholes as a test and I just want to see what the product looks like after I build it, without having to create a config file to test locally.

I want to, for testing purposes, be able to use spacecookie without specifying a config file.

hyperrealgopher avatar May 30 '21 05:05 hyperrealgopher

I guess root should default to ./. then, but what should port default to? It would be 70 of course, but that is not helpful in your usecase because it'd require root privileges.

sternenseemann avatar May 30 '21 09:05 sternenseemann

How about 7070? Makes me think about how for similar purposes HTTP daemons will use port 8080. I've been personally using port 7070 for testing.

hyperrealgopher avatar May 30 '21 13:05 hyperrealgopher

Contrary to 8080 with http, 7070 has another protocol than gopher assigned to it, so it makes for a bad default. Maybe the solution is to allow specifying a subset of the configuration via command line flags.

sternenseemann avatar May 31 '21 12:05 sternenseemann

I don't think it'd be bad to be some preconfigured port number for testing and an option to set a flag too!

hyperrealgopher avatar Jun 01 '21 01:06 hyperrealgopher