jobflow_remote.cli.jfr_typer module#

class jobflow_remote.cli.jfr_typer.JFRTyper(*args, **kwargs)[source]#

Bases: Typer

Subclassing typer to intercept exceptions and print nicer error messages.

callback(*args, **kwargs) Callable[[CommandFunctionType], CommandFunctionType][source]#

Using the decorator @app.callback, you can declare the CLI parameters for the main CLI application.

Read more in the [Typer docs for Callbacks](https://typer.tiangolo.com/tutorial/commands/callback/).

## Example

```python import typer

app = typer.Typer() state = {“verbose”: False}

@app.callback() def main(verbose: bool = False):

if verbose:

print(“Will write verbose output”) state[“verbose”] = True

@app.command() def delete(username: str):

# define subcommand …

```

command(*args, **kwargs) Callable[[CommandFunctionType], CommandFunctionType][source]#

Using the decorator @app.command, you can define a subcommand of the previously defined Typer app.

Read more in the [Typer docs for Commands](https://typer.tiangolo.com/tutorial/commands/).

## Example

```python import typer

app = typer.Typer()

@app.command() def create():

print(“Creating user: Hiro Hamada”)

@app.command() def delete():

print(“Deleting user: Hiro Hamada”)

```

jobflow_remote.cli.jfr_typer.default_callback(print_tree: Annotated[bool, <typer.models.OptionInfo object at 0x7fbc792f4450>]=False)[source]#