Files
coder/cli/vpndaemon.go
Dean Sheather d63bd213f7 chore: add vpn-daemon run subcommand for windows (#15526)
`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
2024-11-18 21:10:01 +10:00

22 lines
406 B
Go

package cli
import (
"github.com/coder/serpent"
)
func (r *RootCmd) vpnDaemon() *serpent.Command {
cmd := &serpent.Command{
Use: "vpn-daemon [subcommand]",
Short: "VPN daemon commands used by Coder Desktop.",
Hidden: true,
Handler: func(inv *serpent.Invocation) error {
return inv.Command.HelpHandler(inv)
},
Children: []*serpent.Command{
r.vpnDaemonRun(),
},
}
return cmd
}