aboutsummaryrefslogtreecommitdiff
path: root/cmd/galleryd/flags.go
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-13 20:00:01 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-13 20:00:01 +0530
commit424d138dd25c3f3cd7ce3f9e0d41aac19fe9cba8 (patch)
tree26dc9a77dadd55b8e2d3cf60cad16a87a36bb357 /cmd/galleryd/flags.go
parent778ec3e2e34b1a914e32109e8e02bdbf3dfc536a (diff)
downloadgalleryd-424d138dd25c3f3cd7ce3f9e0d41aac19fe9cba8.tar.xz
galleryd-424d138dd25c3f3cd7ce3f9e0d41aac19fe9cba8.zip
feat(cli): support multiple gallery directories
Diffstat (limited to 'cmd/galleryd/flags.go')
-rw-r--r--cmd/galleryd/flags.go15
1 files changed, 15 insertions, 0 deletions
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
+}