From 424d138dd25c3f3cd7ce3f9e0d41aac19fe9cba8 Mon Sep 17 00:00:00 2001 From: RanXom Date: Mon, 13 Jul 2026 20:00:01 +0530 Subject: feat(cli): support multiple gallery directories --- cmd/galleryd/flags.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cmd/galleryd/flags.go (limited to 'cmd/galleryd/flags.go') diff --git a/cmd/galleryd/flags.go b/cmd/galleryd/flags.go new file mode 100644 index 0000000..d3240d7 --- /dev/null +++ b/cmd/galleryd/flags.go @@ -0,0 +1,15 @@ +package main + +import "strings" + +// stringSliceFlag collects repeated string flags. +type stringSliceFlag []string + +func (f *stringSliceFlag) String() string { + return strings.Join(*f, ",") +} + +func (f *stringSliceFlag) Set(value string) error { + *f = append(*f, value) + return nil +} -- cgit v1.2.3