Source code for shok.cli
import typer
from rich import print
from .main import add
app = typer.Typer()
[docs]
@app.command()
def main(n1: int, n2: int) -> None:
"""Add the arguments and print the result."""
print(add(n1, n2))
import typer
from rich import print
from .main import add
app = typer.Typer()
[docs]
@app.command()
def main(n1: int, n2: int) -> None:
"""Add the arguments and print the result."""
print(add(n1, n2))