Replies: 2 comments
-
|
Great idea! indeed I'd rather get a list of commands from the extension. Calling bin/gpo is not necessarily in the python library path so I think importing helpers wouldn't work (not tested). Maybe it's time to move gpoddercli code to a module in src/gpodder? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh right, gpo can toggle extensions.
Ya, should be pretty easy. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice if extensions could register new commands for use in gpo. Then the youtube-dl extension could add a command to update yt-dlp (#1729). The following patch adds a 'ytupdate' command when the youtube-dl extension is loaded. There is however no help available for it, but it is easily doable.
It would be better to add something similar to
on_episodes_context_menu, maybeon_cli_commands(?), for extensions to return an array of command name, function, and help string. The help function could then append the new commands, and init could simply inject the functions into the class.Is it possible to import the command decorators from
bin/gpointo an extension?Beta Was this translation helpful? Give feedback.
All reactions