Skip to content
Myr

:memo: Add docs for get_app_dir()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by GitHub · parents db25071, fb46cc0 · Browse files · 3 files+52 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+52 added−0 removed

  • other:+52 added−0 removed

3 files+52 added−0 removed

added:docs/src/app_dir/tutorial001.py+16 added
1from pathlib import Path23import typer45APP_NAME = "my-super-cli-app"678def main():9 app_dir = typer.get_app_dir(APP_NAME)10 config_path = Path(app_dir) / "config.json"11 if not config_path.is_file():12 typer.echo("Config file doesn't exist yet")131415if __name__ == "__main__":16 typer.run(main)
added:docs/tutorial/app-dir.md+35 added
modified:mkdocs.yml+1 added