diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-13 11:17:00 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-13 11:17:00 +0800 |
| commit | 860fb317bca61ce66a2c98df933aa666dae0a43f (patch) | |
| tree | 1aa4440e23b6344097958888aeef231ba4d9e9ba /crates/vcs_actions/src/registry/server_registry.rs | |
| parent | 635ded4f6815d738dd9b9b711aa4c7cf302d340b (diff) | |
feat: Add JSON-based action invocation to ActionPool
- Extend action_gen macro to generate JSON serialization logic
- Implement generic action processing using JSON text for type-agnostic calls
- Add callback mechanism with action name and arguments in ActionPool
- Update client and server registries to use new callback system
- Improve action system flexibility at the cost of serialization overhead
Diffstat (limited to 'crates/vcs_actions/src/registry/server_registry.rs')
| -rw-r--r-- | crates/vcs_actions/src/registry/server_registry.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/vcs_actions/src/registry/server_registry.rs b/crates/vcs_actions/src/registry/server_registry.rs index bdd6a65..3ecc103 100644 --- a/crates/vcs_actions/src/registry/server_registry.rs +++ b/crates/vcs_actions/src/registry/server_registry.rs @@ -1,9 +1,9 @@ use action_system::action_pool::ActionPool; -use crate::actions::local_actions::SetUpstreamVaultAction; +use crate::actions::local_actions::register_set_upstream_vault_action; pub fn server_action_pool() -> ActionPool { let mut pool = ActionPool::new(); - SetUpstreamVaultAction::register_to_pool(&mut pool); + register_set_upstream_vault_action(&mut pool); pool } |
