Skip to content

Added in_script() and in_pyscript() to cmd2.Cmd class #782

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

Merged
merged 1 commit into from
Sep 24, 2019
Merged

Conversation

kmvanbrunt
Copy link
Member

Added the following convenience methods

  • Cmd.in_script() - return whether a text script is running
  • Cmd.in_pyscript() - return whether a pyscript is running

Closes #779

Copy link
Member

@tleonhardt tleonhardt left a comment

Choose a reason for hiding this comment

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

Looks good

@tleonhardt tleonhardt merged commit 41d3c66 into master Sep 24, 2019
@tleonhardt tleonhardt deleted the in_script branch September 24, 2019 02:40
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.

Add method to know if you are in a script
2 participants