From 36dc9ff10971cf97eb077907072c519cb5349fe4 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 21 Nov 2020 15:33:57 -0500 Subject: Most of the functionality I want is there now, it's not pretty though. Build the web server and the command line in the build script Allow for deletion of games from the library Move the download function out of main.go Add more information to the index template and handler. Allow for downloads from URLs and installation from local files. Allow changing of the library path via a command line flag Automatically start the web browser on windows --- cmd/web/flagSliceString.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cmd/web/flagSliceString.go (limited to 'cmd/web/flagSliceString.go') diff --git a/cmd/web/flagSliceString.go b/cmd/web/flagSliceString.go new file mode 100644 index 0000000..ec06966 --- /dev/null +++ b/cmd/web/flagSliceString.go @@ -0,0 +1,12 @@ +package main + +type FlagSliceString []string + +func (f *FlagSliceString) String() string { + return "" +} + +func (f *FlagSliceString) Set(val string) error { + *f = append(*f, val) + return nil +} -- cgit v1.2.3