mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-23 11:48:39 +00:00
return types
This commit is contained in:
parent
a464de8f18
commit
2e34754303
@ -9,7 +9,7 @@ from .constants import *
|
|||||||
from .downloader import Downloader
|
from .downloader import Downloader
|
||||||
|
|
||||||
|
|
||||||
def write_default_config_file(ctx: click.Context):
|
def write_default_config_file(ctx: click.Context) -> None:
|
||||||
ctx.params["config_location"].parent.mkdir(parents=True, exist_ok=True)
|
ctx.params["config_location"].parent.mkdir(parents=True, exist_ok=True)
|
||||||
config_file = {
|
config_file = {
|
||||||
param.name: param.default
|
param.name: param.default
|
||||||
@ -22,7 +22,7 @@ def write_default_config_file(ctx: click.Context):
|
|||||||
|
|
||||||
def no_config_callback(
|
def no_config_callback(
|
||||||
ctx: click.Context, param: click.Parameter, no_config_file: bool
|
ctx: click.Context, param: click.Parameter, no_config_file: bool
|
||||||
):
|
) -> click.Context:
|
||||||
if no_config_file:
|
if no_config_file:
|
||||||
return ctx
|
return ctx
|
||||||
if not ctx.params["config_location"].exists():
|
if not ctx.params["config_location"].exists():
|
||||||
|
Loading…
Reference in New Issue
Block a user