Skip to content

Commit

Permalink
remove redundant 'record' bool
Browse files Browse the repository at this point in the history
  • Loading branch information
dwreeves committed Apr 28, 2024
1 parent b0177ae commit 06a8bc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/rich_click/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,8 @@ def main(
module = import_module(module_path)

function = getattr(module, function_name)
# simply run it: it should be patched as well

if output is not None:
RichContext.record = True
RichContext.export_console_as = output

prog = module_path.split(".", 1)[0]
Expand Down
1 change: 0 additions & 1 deletion src/rich_click/rich_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class RichContext(click.Context):
formatter_class: Type[RichHelpFormatter] = RichHelpFormatter
console: Optional["Console"] = None
export_console_as: Literal[None, "html", "svg"] = None
record: bool = False

def __init__(
self,
Expand Down

0 comments on commit 06a8bc1

Please sign in to comment.