You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unit: cli/cmd/template_test.go + cli/pkg/client/client_test.go — list/get/diff with all output modes; diff renders unified text in table mode and structured JSON in json/yaml.
Summary
GET /api/v1/templates/:id/versions→stackctl template versions list <id>GET /api/v1/templates/:id/versions/:versionId→stackctl template versions get <id> <version>GET /api/v1/templates/:id/versions/diff?from=&to=→stackctl template versions diff <id> <v1> <v2>Files to touch
cli/pkg/types/types.go— addTemplateVersion,TemplateVersionDiff.cli/pkg/client/client.go— add three methods.cli/cmd/template.go— add nestedversionssubcommand (mirrorcluster shared-valuespattern incli/cmd/cluster.go).Tests (all three layers required)
cli/cmd/template_test.go+cli/pkg/client/client_test.go— list/get/diff with all output modes; diff renders unified text in table mode and structured JSON in json/yaml.cli/test/integration/template_definition_integration_test.go— Cobra in-process list+get+diff round-trip.cli/test/e2e/cli_e2e_test.go— one happy-path scenario fortemplate versions diff.Acceptance
diffoutput: unified text (table mode) and structured JSON (json/yaml).Tracks #59