Skip to content

Commit ec1fa42

Browse files
committed
Allow users to hide the feedback link
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 7efa4ca commit ec1fa42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func NewRootCmd() *cobra.Command {
2121
Short: "cagent - AI agent runner",
2222
Long: `cagent is a command-line tool for running AI agents`,
2323
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
24-
if cmd.DisplayName() != "exec" {
24+
if cmd.DisplayName() != "exec" && os.Getenv("CAGENT_HIDE_FEEDBACK_LINK") != "1" {
2525
_, _ = cmd.OutOrStdout().Write([]byte("\nFor any feedback, please visit: " + FeedbackLink + "\n\n"))
2626
}
2727

0 commit comments

Comments
 (0)