| 126 | |
| 127 | impl 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<()> { |