summaryrefslogtreecommitdiff
path: root/crates/vcs_actions/src/registry/server_registry.rs
blob: fbec4af1168f9e6d9485f8260d2e260b5c9b3270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use action_system::action_pool::ActionPool;

use crate::actions::{
    local_actions::{register_set_upstream_vault_action, register_update_to_latest_info_action},
    sheet_actions::{register_drop_sheet_action, register_make_sheet_action},
    virtual_file_actions::register_track_file_action,
};

pub fn server_action_pool() -> ActionPool {
    let mut pool = ActionPool::new();

    // Local Actions
    register_set_upstream_vault_action(&mut pool);
    register_update_to_latest_info_action(&mut pool);

    // Sheet Actions
    register_make_sheet_action(&mut pool);
    register_drop_sheet_action(&mut pool);

    // Virtual File Actions
    register_track_file_action(&mut pool);

    pool
}