utils
¤
TVSD Utilities, contains useful functions
dir_exists
¤
file_exists
¤
file_exists_in_base
¤
get_next_specials_index
¤
is_video
¤
mkdir_if_no
¤
relative_to_absolute_path
¤
typer_easy_cli
¤
typer_easy_cli(func)
A decorator that takes a fully-annotated function and transforms it into a Typer command. Based on: https://github.com/tiangolo/typer/issues/336#issuecomment-1251698736
At the moment, the function needs to have only keywords at the moment, so this is ok:
def fun(*, par1: int, par2: float): ...
but this is NOT ok:
def fun(par1: int, par2: float): ...