Refactor context command (#13948)

### What problem does this PR solve?

As title

### Type of change

- [x] Refactoring

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-04-07 11:30:09 +08:00
committed by GitHub
parent ff27ce86d6
commit 5673245134
11 changed files with 341 additions and 106 deletions

View File

@@ -40,7 +40,7 @@ func main() {
}()
// Check if we have a single command to execute
if args.Command != "" {
if args.Command != nil {
// Single command mode
if err = cliApp.RunSingleCommand(args.Command); err != nil {
fmt.Printf("Error: %v\n", err)