Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clear internal command to clear screen #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jm66
Copy link
Contributor

@jm66 jm66 commented Sep 12, 2019

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
@@ -234,6 +239,9 @@ def get_command():
if isinstance(result, six.string_types):
click.echo(result)
continue
if callable(result):
Copy link
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