(lang: Optional[str])
| 37 | |
| 38 | |
| 39 | def lang_callback(lang: Optional[str]): |
| 40 | if lang is None: |
| 41 | return |
| 42 | if not lang.isalpha() or len(lang) != 2: |
| 43 | typer.echo("Use a 2 letter language code, like: es") |
| 44 | raise typer.Abort() |
| 45 | lang = lang.lower() |
| 46 | return lang |
| 47 | |
| 48 | |
| 49 | def complete_existing_lang(incomplete: str): |
nothing calls this directly
no outgoing calls
no test coverage detected