added click_default_group package; configured setup.py installation
This commit is contained in:
6
setup.py
6
setup.py
@@ -17,6 +17,12 @@ setuptools.setup(
|
|||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
url='https://gitlab.com/Rigil-Kent/yoink',
|
url='https://gitlab.com/Rigil-Kent/yoink',
|
||||||
|
packages=setuptools.find_packages(),
|
||||||
|
classifiers=[
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
],
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'yoink = yoink.cli:yoink'
|
'yoink = yoink.cli:yoink'
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
from email.policy import default
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import click
|
import click
|
||||||
|
from click_default_group import DefaultGroup
|
||||||
|
|
||||||
from yoink.common import app_root, library_path, config_path
|
from yoink.common import app_root, library_path, config_path
|
||||||
from yoink.comic import Comic
|
from yoink.comic import Comic
|
||||||
@@ -9,7 +11,7 @@ from yoink.comic import Comic
|
|||||||
|
|
||||||
queue = []
|
queue = []
|
||||||
|
|
||||||
@click.group()
|
@click.group(cls=DefaultGroup, default='init', default_if_no_args=True)
|
||||||
@click.option('-c', '--comic', help='Download a Comic file')
|
@click.option('-c', '--comic', help='Download a Comic file')
|
||||||
@click.option('-t', '--torrent', help='Download a Torrent')
|
@click.option('-t', '--torrent', help='Download a Torrent')
|
||||||
def yoink(comic, torrent):
|
def yoink(comic, torrent):
|
||||||
|
|||||||
Reference in New Issue
Block a user