cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

sync.rs (1172B)


      1 use super::{ApprovalPolicy, OperationRole, OperationSpec, RiskLevel};
      2 
      3 pub const SYNC_STATUS_GET: OperationSpec = operation!(
      4     "sync.status.get",
      5     "radroots sync status get",
      6     "sync",
      7     "sync_status_get",
      8     "SyncStatusGetRequest",
      9     "SyncStatusGetResult",
     10     "Read sync status.",
     11     Any,
     12     false,
     13     None,
     14     Low,
     15     false,
     16     false
     17 );
     18 
     19 pub const SYNC_PULL: OperationSpec = operation!(
     20     "sync.pull",
     21     "radroots sync pull",
     22     "sync",
     23     "sync_pull",
     24     "SyncPullRequest",
     25     "SyncPullResult",
     26     "Pull remote updates into local store.",
     27     Any,
     28     true,
     29     None,
     30     Medium,
     31     true,
     32     true
     33 );
     34 
     35 pub const SYNC_PUSH: OperationSpec = operation!(
     36     "sync.push",
     37     "radroots sync push",
     38     "sync",
     39     "sync_push",
     40     "SyncPushRequest",
     41     "SyncPushResult",
     42     "Push local signed updates to relays.",
     43     Any,
     44     true,
     45     Required,
     46     High,
     47     true,
     48     true
     49 );
     50 
     51 pub const SYNC_WATCH: OperationSpec = operation!(
     52     "sync.watch",
     53     "radroots sync watch",
     54     "sync",
     55     "sync_watch",
     56     "SyncWatchRequest",
     57     "SyncWatchResult",
     58     "Stream sync events.",
     59     Any,
     60     false,
     61     None,
     62     Low,
     63     true,
     64     false
     65 );