Skip to content

Add clear internal command to clear screen - #61

Open
jm66 wants to merge 1 commit into
click-contrib:masterfrom
jm66:internal-clear
Open

Add clear internal command to clear screen#61
jm66 wants to merge 1 commit into
click-contrib:masterfrom
jm66:internal-clear

Conversation

@jm66

@jm66 jm66 commented Sep 12, 2019

Copy link
Copy Markdown
Contributor

based on prompt-toolkit.shortcuts.clear function.
Add ability to create "callable" internal commands

@jm66
jm66 requested a review from untitaker January 29, 2020 13:01
Comment thread click_repl/__init__.py
if isinstance(result, six.string_types):
click.echo(result)
continue
if callable(result):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this branch needed? Just call clear from within clear_internal?

prompt-toolkit.shortcuts.clear function.
Add ability to create "callable" internal commands
@jm66
jm66 force-pushed the internal-clear branch from 92e6893 to 9747560 Compare May 13, 2021 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants