package cmd

import (
	"github.com/innerr/ticat/pkg/core/model"

	"github.com/tidbcloud/controlplane9/internal/verbose"
)

// syncVerbose reads the cp9.verbose env flag and enables/disables verbose mode.
// Call this at the start of any command that makes outbound requests.
func syncVerbose(env *model.Env) {
	verbose.SetEnabled(env.GetBool("cp9.verbose"))
}
