mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +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
22 lines
406 B
Go
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
|
|
}
|