MCPcopy
hub / github.com/tailscale/tailscale / reloadConfig

Function reloadConfig

cmd/tailscale/cli/debug.go:719–731  ·  view source on GitHub ↗
(ctx context.Context, args []string)

Source from the content-addressed store, hash-verified

717}
718
719func reloadConfig(ctx context.Context, args []string) error {
720 ok, err := localClient.ReloadConfig(ctx)
721 if err != nil {
722 return err
723 }
724 if ok {
725 printf("config reloaded\n")
726 return nil
727 }
728 printf("config mode not in use\n")
729 os.Exit(1)
730 panic("unreachable")
731}
732
733func runEnv(ctx context.Context, args []string) error {
734 for _, e := range os.Environ() {

Callers

nothing calls this directly

Calls 3

printfFunction · 0.70
ReloadConfigMethod · 0.45
ExitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…