From b342f827028b6eb95fc81cb6f4a35a620634e651 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Sun, 22 Sep 2024 13:36:05 +0300 Subject: [PATCH] Remove redundant log Signed-off-by: Michael Sverdlov --- general/ai/cli.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/general/ai/cli.go b/general/ai/cli.go index fad091cb2..76acfd366 100644 --- a/general/ai/cli.go +++ b/general/ai/cli.go @@ -43,7 +43,8 @@ func HowCmd(c *cli.Context) error { if c.NArg() > 0 { return cliutils.WrongNumberOfArgumentsHandler(c) } - log.Output(coreutils.PrintLink("This AI-based interface converts your natural language inputs into fully functional JFrog CLI commands.\n" + + log.Output(coreutils.PrintLink("This AI-based interface converts natural language inputs into AI-generated JFrog CLI commands.\n" + + "For more information about this interface, see [link to CLI AI Documentation].\n" + "NOTE: This is an experimental version and it supports mostly Artifactory and Xray commands.\n")) // Ask the user to agree to the terms and conditions. If the user does not agree, the command will not proceed. @@ -191,9 +192,9 @@ func handleAiTermsAgreement() (bool, error) { return false, err } if latestTermsVer == nil || *latestTermsVer < aiTermsRevision { - if !coreutils.AskYesNo("By using this CLI interface you on behalf of your organization agree to JFrog's terms and conditions.\n"+ - "Review these terms at https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/ai.\n"+ - "Do you agree?", false) { + if !coreutils.AskYesNo("By using this interface, you agree to the terms of JFrog's AI Addendum on behalf of your organization as an active JFrog customer.\n"+ + "Review these terms at "+coreutils.PrintLink("https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/ai.")+ + "\nDo you agree?", false) { return false, nil } if err = cliutils.SetLatestAiTermsRevision(aiTermsRevision); err != nil {