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

Method run

atomic-cli/src/commands/repo.rs:54–67  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

52
53impl Command for Repo {
54 fn run(&self) -> CliResult<()> {
55 let root = find_repository_root()?;
56 match &self.command {
57 RepoCommand::Identity {
58 command: IdentityCommand::Show { json },
59 } => Self::show(&root, *json),
60 RepoCommand::Identity {
61 command: IdentityCommand::Adopt { remote, json },
62 } => Self::adopt(&root, remote.as_deref(), *json),
63 RepoCommand::Identity {
64 command: IdentityCommand::Fork { json },
65 } => Self::fork(&root, *json),
66 }
67 }
68}
69
70impl Repo {

Callers

nothing calls this directly

Calls 2

find_repository_rootFunction · 0.85
adoptFunction · 0.85

Tested by

no test coverage detected