refactoring, adding cli to edit config

This commit is contained in:
2025-08-26 21:59:50 +02:00
parent e36b15e271
commit 2c109b945e
14 changed files with 503 additions and 20 deletions

18
cmd/cli/flag/flag.go Normal file
View File

@@ -0,0 +1,18 @@
package flag
import (
"strings"
)
type Array []string
// String is an implementation of the flag.Value interface
func (i *Array) String() string {
return strings.Join(*i, ", ")
}
// Set is an implementation of the flag.Value interface
func (i *Array) Set(value string) error {
*i = append(*i, value)
return nil
}