about summary refs log tree commit diff
path: root/pkgs/applications/editors/kakoune
diff options
context:
space:
mode:
authorMatthieu Coudron <teto@users.noreply.github.com>2023-04-14 22:02:17 +0200
committerGitHub <noreply@github.com>2023-04-14 22:02:17 +0200
commit351cec5db3b7ca839779316a8b7c524ea8941f0f (patch)
treee23cac70ebccb153439b0203ddee0a95253af676 /pkgs/applications/editors/kakoune
parent1cb472891d198a07f81186abc8ebcd7acc85242a (diff)
use subcommands in plugin updaters (#223164)
* update.py: introduce subparsers for plugin updaters

This is preliminary work to help create more powerful plugin updaters.
Namely I would like to be able to "just add" plugins without refreshing
the older ones (helpful when github temporarily removes a user from
github due to automated bot detection).

Also concerning the lua updater, we pin some of the dependencies, and I
would like to be able to unpin the package without editing the csv
(coming in later PRs).

* doc/updaters: update command to update editor plugins

including vim, kakoune and lua packages

Co-authored-by: figsoda
Diffstat (limited to 'pkgs/applications/editors/kakoune')
-rwxr-xr-xpkgs/applications/editors/kakoune/plugins/update.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/applications/editors/kakoune/plugins/update.py b/pkgs/applications/editors/kakoune/plugins/update.py
index 49662a0e8e2e2..ab5aa9242839c 100755
--- a/pkgs/applications/editors/kakoune/plugins/update.py
+++ b/pkgs/applications/editors/kakoune/plugins/update.py
@@ -81,10 +81,7 @@ in lib.fix' (lib.extends overrides packages)
 
 def main():
     editor = KakouneEditor("kakoune", ROOT, GET_PLUGINS)
-    parser = editor.create_parser()
-    args = parser.parse_args()
-
-    pluginupdate.update_plugins(editor, args)
+    editor.run()
 
 
 if __name__ == "__main__":