Cleaned up documentation and development artifcats in advance of release

This commit is contained in:
2026-04-27 21:48:04 -05:00
parent 6cb739be55
commit 28c2eea340
15 changed files with 336 additions and 92 deletions

View File

@@ -73,7 +73,7 @@ func TestMergeWritesMergedOutputAndReport(t *testing.T) {
t.Fatalf("did not expect words in output:\n%s", outputJSON)
}
if len(transcript.OverlapGroups) != 0 {
t.Fatalf("expected placeholder output to contain no overlap groups, got %d", len(transcript.OverlapGroups))
t.Fatalf("expected output to contain no overlap groups, got %d", len(transcript.OverlapGroups))
}
var rpt report.Report
@@ -87,7 +87,7 @@ func TestMergeWritesMergedOutputAndReport(t *testing.T) {
"validate-raw",
"normalize-speakers",
"trim-text",
"placeholder-merger",
"chronological-merge",
"detect-overlaps",
"resolve-overlaps",
"backchannel",
@@ -105,6 +105,9 @@ func TestMergeWritesMergedOutputAndReport(t *testing.T) {
if !hasReportEvent(rpt, "postprocessing", "validate-output", "validated 3 output segment(s)") {
t.Fatal("expected validate-output report event")
}
if !hasReportEvent(rpt, "merge", "chronological-merge", "merged 2 canonical transcript(s) into 3 segment(s)") {
t.Fatal("expected chronological-merge report event")
}
}
func TestMergeTieBreakOrder(t *testing.T) {

View File

@@ -2,6 +2,8 @@ package cli
import (
"github.com/spf13/cobra"
"gitea.maximumdirect.net/eric/seriatim/internal/buildinfo"
)
// NewRootCommand builds the seriatim command tree.
@@ -9,6 +11,7 @@ func NewRootCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "seriatim",
Short: "Merge per-speaker transcripts into a chronological transcript",
Version: buildinfo.Version,
SilenceErrors: true,
SilenceUsage: true,
}

10
internal/cli/root_test.go Normal file
View File

@@ -0,0 +1,10 @@
package cli
import "testing"
func TestRootCommandDefaultsVersionToDev(t *testing.T) {
cmd := NewRootCommand()
if cmd.Version != "dev" {
t.Fatalf("version = %q, want dev", cmd.Version)
}
}