Skip to content

Commit

Permalink
feat: Support arrow key text navigation during interactive config (me…
Browse files Browse the repository at this point in the history
  • Loading branch information
WillDaSilva committed Feb 24, 2023
1 parent 3b1215f commit 092651b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/meltano/cli/interactive/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

from __future__ import annotations

from contextlib import suppress

# NOTE: Importing the readline module enables the use of arrow
# keys for text navigation during interactive config.
# Refer to https://docs.python.org/3/library/readline.html
with suppress(ImportError):
import readline # noqa: F401

import click
from jinja2 import BaseLoader, Environment
from rich.console import Console, Group
Expand Down

0 comments on commit 092651b

Please sign in to comment.