MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run

Method run

atomic-cli/src/commands/project/init.rs:96–112  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

94
95impl 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
115impl ProjectInit {

Callers

nothing calls this directly

Calls 2

project_initFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected