Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,6 +59,13 @@ uv sync
uv run create-awesome-python-app --help
```

### Shell completion

```bash
create-awesome-python-app --install-completion # bash / zsh / fish
create-awesome-python-app --show-completion # print script only
```

## License

MIT — see [LICENSE](./LICENSE).
Expand Down
15 changes: 15 additions & 0 deletions packages/create-awesome-python-app/README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,3 +9,18 @@ uv run create-awesome-python-app --help
uvx create-awesome-python-app@latest my-app # after PyPI publish
pipx run create-awesome-python-app my-app
```

## Shell completion

Typer installs completion scripts for bash, zsh, and fish:

```bash
# Interactive install into your shell profile
create-awesome-python-app --install-completion

# Or print the script and source it manually
create-awesome-python-app --show-completion
```

After installing, restart the shell (or `source` your profile) and tab-complete
flags such as `--template`, `--addons`, and `cache` subcommands.
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,7 +28,7 @@
name="create-awesome-python-app",
help="Composable scaffolding CLI for production-ready Python apps.",
no_args_is_help=False,
add_completion=False,
add_completion=True,
)
cache_app = typer.Typer(help="Inspect and manage the local template cache")
app.add_typer(cache_app, name="cache")
Expand Down
2 changes: 2 additions & 0 deletions packages/create-awesome-python-app/tests/test_flags.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,5 +23,7 @@ def test_help_lists_scaffold_flags() -> None:
"--set",
"--force",
"--no-install",
"--install-completion",
"--show-completion",
]:
assert flag in text
Loading