(&self)
| 35 | |
| 36 | #[cfg(feature = "component-model")] |
| 37 | pub fn unwrap_component(&self) -> &Component { |
| 38 | match self { |
| 39 | RunTarget::Component(c) => c, |
| 40 | RunTarget::Core(_) => panic!("expected a component, not a core wasm module"), |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | /// Common command line arguments for run commands. |