App Reference

goodbye(user)

Display a farewell message for the user.

Parameters:

Name Type Description Default
user str

The name of the user.

required
Source code in pytemplates_typer_cli/main.py
21
22
23
24
25
26
27
28
29
@app.command()
def goodbye(user: str) -> None:
    """Display a farewell message for the user.

    Args:
        user: The name of the user.

    """
    typer.echo(wish_farewell(user=user))

hello(user)

Display a greeting for the user.

Parameters:

Name Type Description Default
user str

The name of the user.

required
Source code in pytemplates_typer_cli/main.py
10
11
12
13
14
15
16
17
18
@app.command()
def hello(user: str) -> None:
    """Display a greeting for the user.

    Args:
        user: The name of the user.

    """
    typer.echo(greet(user=user))

version()

Display the CLI version number.

Source code in pytemplates_typer_cli/main.py
32
33
34
35
@app.command()
def version() -> None:
    """Display the CLI version number."""
    typer.echo(__version__)