mirror of
https://github.com/onyx-and-iris/duckypad-twitch.git
synced 2025-02-22 12:35:07 +00:00
move entry point into subpackage
add project.scripts entrypoint
This commit is contained in:
parent
e2be80fc4b
commit
917352772f
1
duckypad_twitch/cli/__init__.py
Normal file
1
duckypad_twitch/cli/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from .duckypad import run
|
@ -57,7 +57,7 @@ def register_hotkeys(duckypad):
|
|||||||
step()
|
step()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def run():
|
||||||
xair_config = configuration.get('xair')
|
xair_config = configuration.get('xair')
|
||||||
|
|
||||||
with voicemeeterlib.api('potato') as vm:
|
with voicemeeterlib.api('potato') as vm:
|
||||||
@ -69,7 +69,3 @@ def main():
|
|||||||
|
|
||||||
print('press ctrl+m to quit')
|
print('press ctrl+m to quit')
|
||||||
keyboard.wait('ctrl+m')
|
keyboard.wait('ctrl+m')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
@ -35,6 +35,9 @@ dependencies = [
|
|||||||
"vban-cmd>=2.5.2",
|
"vban-cmd>=2.5.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
duckypad-cli = "duckypad_twitch.cli:run"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Documentation = "https://github.com/unknown/duckypad-twitch#readme"
|
Documentation = "https://github.com/unknown/duckypad-twitch#readme"
|
||||||
Issues = "https://github.com/unknown/duckypad-twitch/issues"
|
Issues = "https://github.com/unknown/duckypad-twitch/issues"
|
||||||
|
Loading…
Reference in New Issue
Block a user