mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
`coder vpn-daemon run` will instantiate a RPC connection with the specified pipe handles and communicate with the (yet to be implemented) parent process. The tests don't ensure that the tunnel is actually usable yet as the tunnel functionality isn't implemented, but it does make sure that the tunnel tries to read from the RPC pipe. Closes #14735
25 lines
447 B
Go
25 lines
447 B
Go
//go:build !windows
|
|
|
|
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
|
|
}
|