mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 22:10:16 +00:00
27 lines
581 B
Go
27 lines
581 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build linux && !ts_omit_systray
|
|
|
|
package cli
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/peterbourgon/ff/v3/ffcli"
|
|
"tailscale.com/client/systray"
|
|
)
|
|
|
|
var systrayCmd = &ffcli.Command{
|
|
Name: "systray",
|
|
ShortUsage: "tailscale systray",
|
|
ShortHelp: "Run a systray application to manage Tailscale",
|
|
LongHelp: "Run a systray application to manage Tailscale.",
|
|
Exec: runSystray,
|
|
}
|
|
|
|
func runSystray(ctx context.Context, _ []string) error {
|
|
new(systray.Menu).Run(&localClient)
|
|
return nil
|
|
}
|