(&self)
| 94 | |
| 95 | impl Command for ProjectInit { |
| 96 | fn run(&self) -> CliResult<()> { |
| 97 | // Route the repository mutation through the service layer: the |
| 98 | // server-side project creation stays client-side (the management |
| 99 | // StorageClient is built from the global config + the identity |
| 100 | // store — config/auth reads, not redb, per the push/pull ruling), |
| 101 | // and the ONE repository write (add_remote origin) rides |
| 102 | // ManageRemotes so this command never opens redb directly. |
| 103 | if crate::commands::rpc::project_init(self)? { |
| 104 | return Ok(()); |
| 105 | } |
| 106 | |
| 107 | let rt = tokio::runtime::Runtime::new().map_err(|e| { |
| 108 | CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {}", e)) |
| 109 | })?; |
| 110 | |
| 111 | rt.block_on(self.execute()) |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | impl ProjectInit { |
nothing calls this directly
no test coverage detected