The mcp command now delivers its final surface in NewMCPCommand instead of root.go overriding Hidden/Short/Long after construction. CatalogFixtureEnv no longer gates anything once discovery is gone: endpoint resolution is the dynamic server registry only, so a miss is terminal by design.
22 lines
413 B
Go
22 lines
413 B
Go
package cli_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
configDir, err := os.MkdirTemp("", "dws-cli-test-config-")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
os.Setenv("DWS_CONFIG_DIR", configDir)
|
|
|
|
// Tests that construct app root commands must remain serial because root
|
|
// construction initializes process-wide helper dependencies.
|
|
|
|
code := m.Run()
|
|
_ = os.RemoveAll(configDir)
|
|
os.Exit(code)
|
|
}
|