Split ws from jobsearch as a separate test utility rather than a feature of jobsearch

This commit is contained in:
bwilliams committed 2026-10-16 08:58:25 +01:00
1 parent b714ee14d5
commit 5e61c11eb9
9 files changed
+148 -38

No files matched your search

-2
View File
@@ -31,7 +31,6 @@ import (
"git.avsdev.uk/Go/job-search/internal/cli/migrate"
"git.avsdev.uk/Go/job-search/internal/cli/serve"
"git.avsdev.uk/Go/job-search/internal/cli/version"
"git.avsdev.uk/Go/job-search/internal/cli/ws"
)
// newRootCmd builds the command tree. It returns a fresh tree on each call so
@@ -77,7 +76,6 @@ opportunities.
config.NewCommand(opts),
fetch.NewCommand(opts),
migrate.NewCommand(opts),
ws.NewCommand(opts),
serve.NewCommand(opts),
)
+1 -1
View File
@@ -18,7 +18,7 @@ func TestCommandTree(t *testing.T) {
names = append(names, c.Name())
}
commands := []string{"config", "fetch", "migrate", "version", "ws"}
commands := []string{"config", "fetch", "migrate", "serve", "version"}
for _, want := range commands {
if !slices.Contains(names, want) {
t.Errorf("job-search has no %q command; has %v", want, names)