lib/vim-flavor/cli.rb in vim-flavor-2.0.0 vs lib/vim-flavor/cli.rb in vim-flavor-2.1.0
- old
+ new
@@ -15,15 +15,24 @@
Facade.new().install(
options[:vimfiles_path] || default_vimfiles_path
)
end
- desc 'upgrade', 'Upgrade Vim plugins according to VimFlavor file.'
+ desc 'update [REPO_NAME...]',
+ 'Update Vim plugins according to VimFlavor file.'
common_options_to_deploy
- def upgrade
- Facade.new().upgrade(
- options[:vimfiles_path] || default_vimfiles_path
+ def update(*repo_names)
+ Facade.new().update(
+ options[:vimfiles_path] || default_vimfiles_path,
+ repo_names
)
+ end
+
+ desc 'upgrade [REPO_NAME...]',
+ 'Update Vim plugins. (alias of "update")'
+ common_options_to_deploy
+ def upgrade(*repo_names)
+ update(*repo_names)
end
desc 'test [FILES or DIRS]',
'Test a Vim plugin in the current working directory.'
def test(*files_or_dirs)