From b9125f88a939f032d0dd7f87cca566b6263c37da Mon Sep 17 00:00:00 2001 From: Hugo Haas Date: Sat, 5 Oct 2019 10:19:07 -0700 Subject: [PATCH] Added support for Voom for Vim packages (#232) --- README.md | 1 + src/main.rs | 6 ++++++ src/steps/vim.rs | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 21b63162..ff020a6b 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ Just run `topgrade`. It will run the following steps: * [Vundle](https://github.com/VundleVim/Vundle.vim) * [Plug](https://github.com/junegunn/vim-plug) * [Dein](https://github.com/Shougo/dein.vim) + * [Voom](https://github.com/airblade/voom) * Node * Run `yarn global update` if yarn is installed. * Run `npm update -g` if NPM is installed and `npm root -g` is a path inside your home directory. diff --git a/src/main.rs b/src/main.rs index 38bed327..e556da6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -386,6 +386,12 @@ fn run() -> Result<(), Error> { || vim::upgrade_neovim(&base_dirs, run_type), config.no_retry(), )?; + execute( + &mut report, + "voom", + || vim::run_voom(&base_dirs, run_type), + config.no_retry(), + )?; } if config.should_run(Step::Node) { diff --git a/src/steps/vim.rs b/src/steps/vim.rs index 6ff321af..c05c5c3d 100644 --- a/src/steps/vim.rs +++ b/src/steps/vim.rs @@ -117,3 +117,11 @@ pub fn upgrade_neovim(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Err print_separator(&format!("Neovim ({:?})", plugin_framework)); upgrade(&nvim, &nvimrc, plugin_framework, run_type) } + +pub fn run_voom(_base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> { + let voom = require("voom")?; + + print_separator("voom"); + + run_type.execute(voom).arg("update").check_run() +}