Files
opencloud/opencloud/pkg/runtime/options.go
Christian Richter 0372869b8b refactor remaining code from urfave/cli
Signed-off-by: Christian Richter <c.richter@opencloud.eu>
2025-12-15 16:40:27 +01:00

22 lines
349 B
Go

package runtime
import (
"github.com/opencloud-eu/opencloud/pkg/log"
)
// Options is a runtime option
type Options struct {
Services []string
Logger log.Logger
}
// Option undocumented
type Option func(o *Options)
// Services option
func Services(s []string) Option {
return func(o *Options) {
o.Services = append(o.Services, s...)
}
}