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

Method run

atomic-cli/src/commands/git/binding.rs:128–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126
127impl BindingCommand {
128 pub fn run(self) -> CliResult<()> {
129 match self {
130 BindingCommand::Publish {
131 key_file,
132 with_changes_pack,
133 with_conflicts_pack,
134 } => publish(key_file, with_changes_pack, with_conflicts_pack),
135 BindingCommand::Verify { id } => verify(&id),
136 BindingCommand::Fetch {
137 id,
138 remote,
139 timeout,
140 insecure,
141 } => fetch(&id, remote, timeout, insecure),
142 BindingCommand::Resurrect {
143 id,
144 remote,
145 timeout,
146 insecure,
147 to_view,
148 } => resurrect(&id, remote, timeout, insecure, to_view),
149 BindingCommand::Queue {
150 remote,
151 max,
152 degraded_head_fallback,
153 } => queue(remote.as_deref(), max, degraded_head_fallback),
154 }
155 }
156
157 /// Run from a shared reference (clap passes subcommands by reference).
158 pub fn run_owned(self) -> CliResult<()> {

Callers 3

mainFunction · 0.45
run_ownedMethod · 0.45

Calls 5

fetchFunction · 0.85
resurrectFunction · 0.85
queueFunction · 0.85
publishFunction · 0.70
verifyFunction · 0.70

Tested by

no test coverage detected