Clean CLI for filesystem (#15838)

### Type of change

- [x] Refactoring
This commit is contained in:
Yingfeng
2026-06-09 17:00:10 +08:00
committed by GitHub
parent 287a4cfd2b
commit 01a2a44766
6 changed files with 91 additions and 643 deletions

View File

@@ -294,9 +294,8 @@ func (c *CLI) ExecuteUserCommand(cmd *Command) (ResponseIf, error) {
return c.DeleteAdminServer(cmd)
case "save_config_command":
return c.SaveServerConfig(cmd)
// ContextEngine commands
case "context_engine_command":
return nil, c.executeFilesystem(cmd.Params["command"].(string))
case "file_system_command":
return c.executeFilesystem(cmd)
default:
return nil, fmt.Errorf("command '%s' would be executed with API", cmd.Type)
}