package cmd

import (
	"testing"

	"github.com/stretchr/testify/require"
)

func TestLegacyAgentTeamToolCommandUnavailable(t *testing.T) {
	for _, command := range rootCmd.Commands() {
		require.NotEqual(t, "tool", command.Name())
	}
	_, stderr, err := executeCobra(rootCmd, "tool", "--help")
	require.Error(t, err)
	require.Contains(t, stderr, "unknown command")
}
