Typer Note
CLI with Python#
- @2022-01-04
- #TODO : Move from Python Note
- Started using Typer
Local Files#
- @2022-01-31
- Typer offers an app dir, so we don't have to use System Variable all the time. From Official doc: App Dir
- Didn't test if
pathlib.Path(app_dir).mkdir(T)is needed. From Official doc: Launch Apps #TODO
SubCommand#
- @2022-01-31
- (uncertain) Need at least two levels of subcommand. From Official doc: Subcommand and Official doc: One or Multiple Commands
Abort#
- @2022-02-01
- Better practice is to use
typer.Exit(code=1). This will not showAborted! - Official Docs: Abort