mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
6147da58dd
Continues to address https://github.com/coder/coder-desktop-macos/issues/201 Identical to the windows command, except we don't write to stdio. We're retaining the system we have for logging on macOS, where we push logs over the tunnel and use the OS logger. I've tested that a build with this command works end-to-end with my new version of Coder Desktop macOS. Also brings in the soft net isolation changes from `main` of coder/tailscale.
25 lines
458 B
Go
25 lines
458 B
Go
//go:build !windows && !darwin
|
|
|
|
package cli
|
|
|
|
import (
|
|
"golang.org/x/xerrors"
|
|
|
|
"github.com/coder/serpent"
|
|
)
|
|
|
|
func (*RootCmd) vpnDaemonRun() *serpent.Command {
|
|
cmd := &serpent.Command{
|
|
Use: "run",
|
|
Short: "Run the VPN daemon on Windows.",
|
|
Middleware: serpent.Chain(
|
|
serpent.RequireNArgs(0),
|
|
),
|
|
Handler: func(_ *serpent.Invocation) error {
|
|
return xerrors.New("vpn-daemon subcommand is not supported on this platform")
|
|
},
|
|
}
|
|
|
|
return cmd
|
|
}
|