Add offline pipeline inspection and shared native resource preflight

This commit is contained in:
2026-11-22 03:32:31 +00:00
parent 9f66421f4f
commit 2a9c5a6075
9 changed files with 806 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ func TestNativeApplicationBuiltinsNeedNoConfiguration(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for _, args := range [][]string{{"--help"}, {"help"}, {"version"}, {"completion", "bash"}, {"completion", "zsh"}, {"completion", "fish"}, {"config", "--help"}} {
for _, args := range [][]string{{"--help"}, {"help"}, {"version"}, {"completion", "bash"}, {"completion", "zsh"}, {"completion", "fish"}, {"config", "--help"}, {"pipeline", "--help"}, {"pipeline", "validate", "--help"}} {
var out, diagnostics bytes.Buffer
outcome := app.Execute(context.Background(), args, commandkit.Streams{Out: &out, Err: &diagnostics})
if outcome.Status != 0 || out.Len() == 0 {
@@ -52,6 +52,7 @@ func TestNativeConfigurationScopesAndDiffUseSelectedLoadEvidence(t *testing.T) {
{"differences", []string{"config", "diff", "--config", left, "--against-config", right, "--check"}, 3, "workers"},
{"identical", []string{"config", "diff", "--config", left, "--against-config", left, "--check"}, 0, ""},
{"empty", []string{"config", "show", "--config", ""}, 2, ""},
{"configuration has no pipeline mode", []string{"config", "validate", "--config", left, "--pipeline", "demo"}, 2, ""},
} {
t.Run(test.name, func(t *testing.T) {
var out, diagnostics bytes.Buffer