mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-25 23:19:13 -06:00
20 lines
446 B
Go
20 lines
446 B
Go
package flagset
|
|
|
|
import (
|
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// HealthWithConfig applies cfg to the root flag-set.
|
|
func HealthWithConfig(cfg *config.Config) []cli.Flag {
|
|
return []cli.Flag{
|
|
&cli.StringFlag{
|
|
Name: "debug-addr",
|
|
Value: "127.0.0.1:9010",
|
|
Usage: "Address to debug endpoint",
|
|
EnvVars: []string{"OCIS_DEBUG_ADDR"},
|
|
Destination: &cfg.Debug.Addr,
|
|
},
|
|
}
|
|
}
|