(&mut self)
| 88 | } |
| 89 | |
| 90 | fn update(&mut self) -> Result<()> { |
| 91 | let (_, output) = self.run_lossy(&["--list-extensions"])?; |
| 92 | self.installed = output.lines().map(|line| line.to_string()).collect(); |
| 93 | debug!("已安装的扩展有:{:?}", &self.installed); |
| 94 | Ok(()) |
| 95 | } |
| 96 | |
| 97 | fn install(&mut self, id: &str) -> Result<()> { |
| 98 | debug!("安装扩展 {}...", id); |