Files
job-search/internal/cli/ws/command.go
T

18 lines
444 B
Go

// Package ws holds the ws-test commands: "serve" runs the plain TCP server
// for websocket hub clients, and "dial" tests the HTTP server's /ws endpoint.
package ws
import (
"github.com/spf13/cobra"
"git.avsdev.uk/Go/job-search/internal/cli"
)
// NewCommands returns the ws-test commands, "serve" and "dial".
func NewCommands(opts *cli.Options) []*cobra.Command {
return []*cobra.Command{
commandServe(opts),
commandDial(opts),
}
}