implemented plugin updates

This commit is contained in:
Philip Flohr
2018-05-07 20:57:32 +02:00
committed by Dmitry Podgorny
parent cd86f5bc28
commit a5a7db9e2b
3 changed files with 63 additions and 0 deletions

View File

@@ -2085,6 +2085,7 @@ static struct cmd_t command_defs[] =
{ "sourcepath", cmd_plugins_sourcepath },
{ "install", cmd_plugins_install },
{ "uninstall", cmd_plugins_uninstall },
{ "update", cmd_plugins_update },
{ "load", cmd_plugins_load },
{ "unload", cmd_plugins_unload },
{ "reload", cmd_plugins_reload },
@@ -2097,6 +2098,7 @@ static struct cmd_t command_defs[] =
"/plugins sourcepath clear",
"/plugins install [<path>]",
"/plugins uninstall [<plugin>]",
"/plugins update [<path>]",
"/plugins unload [<plugin>]",
"/plugins load [<plugin>]",
"/plugins reload [<plugin>]",
@@ -2108,6 +2110,7 @@ static struct cmd_t command_defs[] =
{ "sourcepath clear", "Clear the default plugins source path." },
{ "install [<path>]", "Install a plugin, or all plugins found in a directory (recursive). Passing no argument will use the sourcepath if one is set." },
{ "uninstall [<plugin>]", "Uninstall a plugin." },
{ "update [<path>]", "Updates an installed plugin" },
{ "load [<plugin>]", "Load a plugin that already exists in the plugin directory, passing no argument loads all found plugins." },
{ "unload [<plugin>]", "Unload a loaded plugin, passing no argument will unload all plugins." },
{ "reload [<plugin>]", "Reload a plugin, passing no argument will reload all plugins." },
@@ -2116,6 +2119,7 @@ static struct cmd_t command_defs[] =
"/plugins sourcepath set /home/meee/projects/profanity-plugins",
"/plugins install",
"/plugins install /home/steveharris/Downloads/metal.py",
"/plugins update /home/steveharris/Downloads/metal.py",
"/plugins uninstall browser.py",
"/plugins load browser.py",
"/plugins unload say.py",