Go CLI: refactor commands (#16447)

### Summary

1. Move debug commands to dev file.
2. Refactor some commands syntax

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-06-29 17:03:26 +08:00
committed by GitHub
parent ec5cd6b1c0
commit 3202ec6abf
12 changed files with 999 additions and 1022 deletions

View File

@@ -736,7 +736,7 @@ func (c *CLI) Run() error {
// the command handlers. Don't echo that back to the operator
// verbatim — log the full error server-side for debugging, and
// show only the error type/message via a sanitized wrapper.
fmt.Printf("CLI error: %s\n", sanitizeCLIError(err))
fmt.Printf("ragflow-cli error: %s\n", sanitizeCLIError(err))
}
}