Go: add API mode check in file system command (#16022)

### What problem does this PR solve?

As title.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-06-15 16:37:47 +08:00
committed by GitHub
parent e3cb86d540
commit 417f805bd9
4 changed files with 694 additions and 665 deletions

View File

@@ -69,7 +69,7 @@ func main() {
os.Exit(1)
}
} else {
if err = client.NewRun(); err != nil {
if err = client.Run(); err != nil {
fmt.Printf("CLI error: %v\n", err)
os.Exit(1)
}