mirror of
https://github.com/oskvr37/tiddl.git
synced 2026-06-13 04:05:08 +03:00
📝 make CLI docs consistent
This commit is contained in:
@@ -19,7 +19,7 @@ from tiddl.config import HOME_PATH
|
||||
"--no-cache", "-nc", is_flag=True, help="Omit Tidal API requests caching."
|
||||
)
|
||||
def cli(ctx: Context, verbose: bool, quiet: bool, no_cache: bool):
|
||||
"""TIDDL - Download Tidal tracks \u266b"""
|
||||
"""TIDDL - Tidal Downloader \u266b"""
|
||||
ctx.obj = ContextObj(omit_cache=no_cache)
|
||||
|
||||
# latest logs
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
@click.group("auth")
|
||||
def AuthGroup():
|
||||
"""Manage Tidal token"""
|
||||
"""Manage Tidal token."""
|
||||
|
||||
|
||||
@AuthGroup.command("login")
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ from tiddl.config import CONFIG_PATH
|
||||
help="Open the configuration file with the default editor",
|
||||
)
|
||||
def ConfigCommand(open: bool):
|
||||
"""Print path to the configuration file"""
|
||||
"""Print path to the configuration file."""
|
||||
|
||||
click.echo(str(CONFIG_PATH))
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ ResourceTypeList: list[ResourceTypeLiteral] = ["track", "video", "album", "artis
|
||||
)
|
||||
@passContext
|
||||
def FavGroup(ctx: Context, resource_types: list[ResourceTypeLiteral]):
|
||||
"""Get your Tidal favorites"""
|
||||
"""Get your Tidal favorites."""
|
||||
|
||||
api = ctx.obj.getApi()
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ from tiddl.utils import TidalResource
|
||||
@click.argument("filename", type=click.File(mode="r"))
|
||||
@passContext
|
||||
def FileGroup(ctx: Context, filename: TextIOWrapper):
|
||||
"""Parse txt or JSON file with urls"""
|
||||
"""Parse txt or JSON file with urls."""
|
||||
|
||||
_, extension = splitext(filename.name)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ from ..ctx import Context, passContext
|
||||
@click.argument("query")
|
||||
@passContext
|
||||
def SearchGroup(ctx: Context, query: str):
|
||||
"""Search on Tidal"""
|
||||
"""Search on Tidal."""
|
||||
|
||||
# TODO: give user interactive choice what to select
|
||||
|
||||
|
||||
Reference in New Issue
Block a user